◆ operator==() [9/9]

template<class T , class U >
__thrust_exec_check_disable__ __host__ __device__ constexpr bool thrust::operator== ( const optional< T > &  lhs,
const U &  rhs 


Compares the optional with a value.

If the optional has a value, it is compared with the other value using Ts relational operators. Otherwise, the optional is considered less than the value.

References thrust::optional< T >::has_value().