thrust::operator==

Defined in thrust/optional.h

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

\group relop

Compares two optional objects

If both optionals contain a value, they are compared with Ts relational operators. Otherwise lhs and rhs are equal only if they are both empty, and lhs is less than rhs only if rhs is empty and lhs is not.