![]() |
Arene Base
Fundamental Utilities For Safety Critical C++
|
Helper class that can be inherited from by a class to define the != operator in terms of the == operator defined by that class. More...

Protected Member Functions | |
| constexpr | full_equality_operators_from_basic_equality () noexcept=default |
| Default constructor is protected. | |
| constexpr | full_equality_operators_from_basic_equality (full_equality_operators_from_basic_equality &&other) noexcept=default |
| Default move constructor is protected. | |
| constexpr | full_equality_operators_from_basic_equality (full_equality_operators_from_basic_equality const &other) noexcept=default |
| Default copy constructor is protected. | |
| constexpr auto | operator= (full_equality_operators_from_basic_equality &&other) &noexcept -> full_equality_operators_from_basic_equality &=default |
| Default move assignment is protected. | |
| constexpr auto | operator= (full_equality_operators_from_basic_equality const &other) &noexcept -> full_equality_operators_from_basic_equality &=default |
| Default copy assignment is protected. | |
| ~full_equality_operators_from_basic_equality () noexcept=default | |
| Default destructor is protected. | |
Friends | |
| ARENE_NODISCARD friend constexpr auto | operator== (Other const &lhs, Derived const &rhs) noexcept -> bool |
Equality comparison operator for instances of Derived and Other. | |
Helper class that can be inherited from by a class to define the != operator in terms of the == operator defined by that class.
Requires that operator==(const Derived&, const Other&) is defined and does not throw exceptions
| Derived | The type of the derived class. The comparison operators provided take parameters of this type. |
| Other | The type of the other object to compare. The comparison operators provided take parameters of this type. |
For example:
|
constexprprotecteddefaultnoexcept |
Default constructor is protected.
|
constexprprotecteddefaultnoexcept |
Default copy constructor is protected.
| other | The value to copy from |
|
constexprprotecteddefaultnoexcept |
Default move constructor is protected.
| other | The value to copy from |
|
constexprprotecteddefaultnoexcept |
Default move assignment is protected.
| other | The value to copy from |
|
constexprprotecteddefaultnoexcept |
Default copy assignment is protected.
| other | The value to copy from |
|
protecteddefaultnoexcept |
Default destructor is protected.
|
friend |
Equality comparison operator for instances of Derived and Other.
| lhs | The first object being compared |
| rhs | The second object being compared |
lhs==rhs