Template Struct EqualityComparable

Inheritance Relationships

Base Type

Struct Documentation

template<typename TUnderlying>
struct EqualityComparable : public t8_crtp_operator<TUnderlying, EqualityComparable>

A template for equality comparable types. Provides the == operator.

Template Parameters:

TUnderlying

Public Functions

inline constexpr bool operator!=(TUnderlying const &other) const

Check if the underlying type is not equal to another underlying type.

Parameters:

other[in] The other underlying type to compare with.

Returns:

True if the underlying types are not equal, false otherwise.

Friends

inline friend constexpr friend bool operator== (const TUnderlying &lhs, const TUnderlying &rhs) noexcept

Check if the underlying types are equal.

Parameters:
  • lhs[in] The left-hand side of the equality check.

  • rhs[in] The right-hand side of the equality check.

Returns:

True if the underlying types are equal, false otherwise.