Template Function thrust::raw_pointer_cast¶
Defined in File memory.h
Function Documentation¶
-
template<typename Pointer>__host__ __device__ thrust::detail::pointer_traits<Pointer>::raw_pointer thrust::raw_pointer_cast(const Pointer & ptr)
raw_pointer_cast
creates a “raw” pointer from a pointer-like type, simply returning the wrapped pointer, should it exist.- Return
ptr.get()
, if the expression is well formed;ptr
, otherwise.- See
raw_reference_cast
- Parameters
ptr
: The pointer of interest.