thrust::raw_pointer_cast

Defined in thrust/memory.h

template<typename Pointer>
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.

See also

raw_reference_cast

Parameters

ptr – The pointer of interest.

Returns

ptr.get(), if the expression is well formed; ptr, otherwise.