StormByte 3.0.0
C++26 foundation of the StormByte suite
Loading...
Searching...
No Matches
StormByte::Type::TotallyOrdered Concept Reference

Type with equality and a total order. More...

#include <StormByte/type_traits/object_semantics.hxx>

Concept definition

template<typename T>
requires(std::remove_cvref_t<T> const& a, std::remove_cvref_t<T> const& b) {
{ a < b } -> std::convertible_to<bool>;
{ a > b } -> std::convertible_to<bool>;
{ a <= b } -> std::convertible_to<bool>;
{ a >= b } -> std::convertible_to<bool>;
}
Type whose == and != both yield something convertible to bool.
Definition comparison.hxx:81
Type with equality and a total order.
Definition object_semantics.hxx:384

Detailed Description

Type with equality and a total order.

Template Parameters
TType to test.
template<Type::TotallyOrdered T>
bool before(const T& left, const T& right) { return left < right; }