34template <
typename DERIVED>
94template<
typename DERIVED>
96 return compareTo(
other) == 0;
99template<
typename DERIVED>
101 return compareTo(
other) != 0;
104template<
typename DERIVED>
106 return compareTo(
other) < 0;
109template<
typename DERIVED>
111 return compareTo(
other) > 0;
114template<
typename DERIVED>
116 return compareTo(
other) <= 0;
119template<
typename DERIVED>
121 return compareTo(
other) >= 0;
145template <original::CmpTraits T>
integer compareTo(const autoPtr &other) const override
Compare reference counters.
Definition autoPtr.h:714
Base class for comparable objects.
Definition comparable.h:35
bool operator<=(const DERIVED &other) const
Checks if the current object is less than or equal to another.
Definition comparable.h:115
bool operator!=(const DERIVED &other) const
Checks if the current object is not equal to another.
Definition comparable.h:100
bool operator>=(const DERIVED &other) const
Checks if the current object is greater than or equal to another.
Definition comparable.h:120
virtual integer compareTo(const DERIVED &other) const =0
Compares the current object with another of the same type.
bool operator==(const DERIVED &other) const
Checks if the current object is equal to another.
Definition comparable.h:95
virtual ~comparable()=default
Virtual destructor for proper cleanup of derived objects.
bool operator>(const DERIVED &other) const
Checks if the current object is greater than another.
Definition comparable.h:110
bool operator<(const DERIVED &other) const
Checks if the current object is less than another.
Definition comparable.h:105
Unique ownership smart pointer with move semantics.
Definition ownerPtr.h:37
std::strong_ordering operator<=>(const T &lhs, const T &rhs)
Three-way comparison operator for CmpTraits types.
Definition comparable.h:146
Platform-independent type definitions and compiler/platform detection.
std::int64_t integer
64-bit signed integer type for arithmetic operations
Definition config.h:254
Main namespace for the project Original.
Definition algorithms.h:21
Core type system foundations and concept definitions.