Lines Matching defs:lhs
1947 constexpr bool operator==(const unexpected<E> &lhs, const unexpected<E> &rhs) {
1948 return lhs.value() == rhs.value();
1951 constexpr bool operator!=(const unexpected<E> &lhs, const unexpected<E> &rhs) {
1952 return lhs.value() != rhs.value();
1955 constexpr bool operator<(const unexpected<E> &lhs, const unexpected<E> &rhs) {
1956 return lhs.value() < rhs.value();
1959 constexpr bool operator<=(const unexpected<E> &lhs, const unexpected<E> &rhs) {
1960 return lhs.value() <= rhs.value();
1963 constexpr bool operator>(const unexpected<E> &lhs, const unexpected<E> &rhs) {
1964 return lhs.value() > rhs.value();
1967 constexpr bool operator>=(const unexpected<E> &lhs, const unexpected<E> &rhs) {
1968 return lhs.value() >= rhs.value();
4204 constexpr bool operator==(const expected<T, E> &lhs,
4206 return (lhs.has_value() != rhs.has_value())
4208 : (!lhs.has_value() ? lhs.error() == rhs.error() : *lhs == *rhs);
4211 constexpr bool operator!=(const expected<T, E> &lhs,
4213 return (lhs.has_value() != rhs.has_value())
4215 : (!lhs.has_value() ? lhs.error() != rhs.error() : *lhs != *rhs);
4218 constexpr bool operator==(const expected<void, E> &lhs,
4220 return (lhs.has_value() != rhs.has_value())
4222 : (!lhs.has_value() ? lhs.error() == rhs.error() : true);
4225 constexpr bool operator!=(const expected<void, E> &lhs,
4227 return (lhs.has_value() != rhs.has_value())
4229 : (!lhs.has_value() ? lhs.error() == rhs.error() : false);
4272 void swap(expected<T, E> &lhs,
4273 expected<T, E> &rhs) noexcept(noexcept(lhs.swap(rhs))) {
4274 lhs.swap(rhs);
7022 [](const key_value_pair &lhs, const key_value_pair &rhs) {
7023 return lhs.first < rhs.first;