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
T
s relational operators. Otherwiselhs
andrhs
are equal only if they are both empty, andlhs
is less thanrhs
only ifrhs
is empty andlhs
is not.