thrust

◆ raw_reference_cast() [1/2]

template<typename T >
__host__ __device__ detail::raw_reference<T>::type thrust::raw_reference_cast ( T &  ref)

raw_reference_cast creates a "raw" reference from a wrapped reference type, simply returning the underlying reference, should it exist.

If the argument is not a reference wrapper, the result is a reference to the argument.

Parameters
refThe reference of interest.
Returns
*thrust::raw_pointer_cast(&ref).
Note
There are two versions of raw_reference_cast. One for const references, and one for non-const.
See also
raw_pointer_cast

Referenced by thrust::mr::unsynchronized_pool_resource< Upstream >::do_allocate(), thrust::mr::unsynchronized_pool_resource< Upstream >::do_deallocate(), and thrust::mr::unsynchronized_pool_resource< Upstream >::release().