Thrust

◆ operator=() [3/4]

template<class T >
template<class U = T, detail::enable_if_t<!detail::is_optional< detail::decay_t< U >>::value > * = nullptr>
__thrust_exec_check_disable__ __host__ __device__ optional& thrust::optional< T & >::operator= ( U &&  u)

Rebinds this optional to u.

U must be an lvalue reference. optional &operator=(U &&u);

References thrust::addressof().