thrust::raw_pointer_cast#
-
template<typename Pointer>
thrust::detail::pointer_traits<Pointer>::raw_pointer thrust::raw_pointer_cast( - Pointer ptr,
raw_pointer_castcreates a “raw” pointer from a pointer-like type, simply returning the wrapped pointer, should it exist.See also
- Parameters:
ptr – The pointer of interest.
- Returns:
ptr.get(), if the expression is well formed;ptr, otherwise.