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. Otherwiselhsandrhsare equal only if they are both empty, andlhsis less thanrhsonly ifrhsis empty andlhsis not.