thrust::operator==

Defined in thrust/optional.h

template<class T, class U>
inline constexpr bool thrust::operator==(const optional<T> &lhs, const U &rhs)

\group relop_t

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.