Thrust

◆ optional() [4/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__ constexpr thrust::optional< T & >::optional ( U &&  u)

Constructs the stored value with u.

template <class u="T"> constexpr optional(U &&u);

References thrust::addressof().