thrust

◆ raw_pointer_cast()

template<typename Pointer >
__host__ __device__ thrust::detail::pointer_traits<Pointer>::raw_pointer thrust::raw_pointer_cast ( Pointer  ptr)

raw_pointer_cast creates a "raw" pointer from a pointer-like type, simply returning the wrapped pointer, should it exist.

Parameters
ptrThe pointer of interest.
Returns
ptr.get(), if the expression is well formed; ptr, otherwise.
See also
raw_reference_cast