A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.github.io/LWG/issue2934 below:

optional<const T> doesn't compare with T

template <class T, class U> constexpr bool operator==(const optional<T>& x, const TU& v);

-?- Requires: The expression *x == v shall be well-formed and its result shall be convertible to bool. [Note: T need not be EqualityComparable. — end note]

-1- Effects: Equivalent to: return bool(x) ? *x == v : false;
template <class T, class U> constexpr bool operator==(const TU& v, const optional<T>& x);

-?- Requires: The expression v == *x shall be well-formed and its result shall be convertible to bool.

-2- Effects: Equivalent to: return bool(x) ? v == *x : false;
template <class T, class U> constexpr bool operator!=(const optional<T>& x, const TU& v);

-?- Requires: The expression *x != v shall be well-formed and its result shall be convertible to bool.

-3- Effects: Equivalent to: return bool(x) ? *x != v : true;
template <class T, class U> constexpr bool operator!=(const TU& v, const optional<T>& x);

-?- Requires: The expression v != *x shall be well-formed and its result shall be convertible to bool.

-4- Effects: Equivalent to: return bool(x) ? v != *x : true;
template <class T, class U> constexpr bool operator<(const optional<T>& x, const TU& v);

-?- Requires: The expression *x < v shall be well-formed and its result shall be convertible to bool.

-5- Effects: Equivalent to: return bool(x) ? *x < v : true;
template <class T, class U> constexpr bool operator<(const TU& v, const optional<T>& x);

-?- Requires: The expression v < *x shall be well-formed and its result shall be convertible to bool.

-6- Effects: Equivalent to: return bool(x) ? v < *x : false;
template <class T, class U> constexpr bool operator<=(const optional<T>& x, const TU& v);

-?- Requires: The expression *x <= v shall be well-formed and its result shall be convertible to bool.

-7- Effects: Equivalent to: return bool(x) ? *x <= v : true;
template <class T, class U> constexpr bool operator<=(const TU& v, const optional<T>& x);

-?- Requires: The expression v <= *x shall be well-formed and its result shall be convertible to bool.

-8- Effects: Equivalent to: return bool(x) ? v <= *x : false;
template <class T, class U> constexpr bool operator>(const optional<T>& x, const TU& v);

-?- Requires: The expression *x > v shall be well-formed and its result shall be convertible to bool.

-9- Effects: Equivalent to: return bool(x) ? *x > v : false;
template <class T, class U> constexpr bool operator>(const TU& v, const optional<T>& x);

-?- Requires: The expression v > *x shall be well-formed and its result shall be convertible to bool.

-10- Effects: Equivalent to: return bool(x) ? v > *x : true;
template <class T, class U> constexpr bool operator>=(const optional<T>& x, const TU& v);

-?- Requires: The expression *x >= v shall be well-formed and its result shall be convertible to bool.

-11- Effects: Equivalent to: return bool(x) ? *x >= v : false;
template <class T, class U> constexpr bool operator>=(const TU& v, const optional<T>& x);

-?- Requires: The expression v >= *x shall be well-formed and its result shall be convertible to bool.

-12- Effects: Equivalent to: return bool(x) ? v >= *x : true;



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4