Files
2025-10-25 03:02:53 +03:00

1.2 KiB
Raw Permalink Blame History

[indirect.comp.with.t]

20 Memory management library [mem]

20.4 Types for composite class design [mem.composite.types]

20.4.1 Class template indirect [indirect]

20.4.1.9 Comparison with T [indirect.comp.with.t]

🔗

template<class U> constexpr bool operator==(const indirect& lhs, const U& rhs) noexcept(noexcept(*lhs == rhs));

1

#

Mandates: The expression *lhs == rhs is well-formed and its result is convertible to bool.

2

#

Returns: If lhs is valueless, false; otherwise *lhs == rhs.

🔗

template<class U> constexpr synth-three-way-result<T, U> operator<=>(const indirect& lhs, const U& rhs);

3

#

Returns: If lhs is valueless, strong_ordering::less; otherwise synth-three-way(*lhs, rhs).