thrust::make_optional

Defined in thrust/optional.h

template<class T = detail::i_am_secret, class U, class Ret = detail::conditional_t<std::is_same<T, detail::i_am_secret>::value, detail::decay_t<U>, T>>
inline constexpr optional<Ret> thrust::make_optional(U &&v)