Thrust

◆ addressof()

template<typename T >
__host__ __device__ T* thrust::addressof ( T &  arg)

Obtains the actual address of the object or function arg, even in presence of overloaded operator&.

References addressof(), and arg().

Referenced by addressof(), thrust::optional< T >::operator->(), thrust::optional< T & >::operator=(), thrust::optional< T & >::optional(), and thrust::optional< T >::swap().