A RetroSearch Logo

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

Search Query:

Showing content from https://timsong-cpp.github.io/cppwp/n4659/optional.comp_with_t below:

[optional.comp_with_t]

23 General utilities library [utilities] 23.6 Optional objects [optional] 23.6.8 Comparison with T [optional.comp_with_t]

template <class T, class U> constexpr bool operator==(const optional<T>& x, const U& 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]

Effects: Equivalent to: return bool(x) ? *x == v : false;

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

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

Effects: Equivalent to: return bool(x) ? v == *x : false;

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

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

Effects: Equivalent to: return bool(x) ? *x != v : true;

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

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

Effects: Equivalent to: return bool(x) ? v != *x : true;

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

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

Effects: Equivalent to: return bool(x) ? *x < v : true;

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

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

Effects: Equivalent to: return bool(x) ? v < *x : false;

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

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

Effects: Equivalent to: return bool(x) ? *x <= v : true;

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

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

Effects: Equivalent to: return bool(x) ? v <= *x : false;

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

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

Effects: Equivalent to: return bool(x) ? *x > v : false;

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

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

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

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

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

Effects: Equivalent to: return bool(x) ? *x >= v : false;

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

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

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