Files
cppdraft_translate/cppdraft/indirect/relops.md
2025-10-25 03:02:53 +03:00

1.4 KiB

[indirect.relops]

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.8 Relational operators [indirect.relops]

🔗

template<class U, class AA> constexpr bool operator==(const indirect& lhs, const indirect<U, AA>& 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 or rhs is valueless,lhs.valueless_after_move() == rhs.valueless_after_move(); otherwise *lhs == *rhs.

🔗

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

3

#

Returns: If lhs is valueless or rhs is valueless,!lhs.valueless_after_move() <=> !rhs.valueless_after_move(); otherwisesynth-three-way(*lhs, *rhs).