template<class type_t = void>
struct xtd::collections::generic::helpers::comparer< type_t >
Implements a function object for compare data.
Implements a function object for compare data.
Definition comparer.hpp:31
- Header
#include <xtd/collections/generic/helpers/comparer>
- Namespace
- xtd::collections::generic::helpers
- Library
- xtd.core
◆ first_argument_type
template<class type_t = void>
Represents the first argument type.
◆ second_argument_type
template<class type_t = void>
Represents the second argument type.
◆ result_type
template<class type_t = void>
Represents the result type.
◆ operator()()
template<class type_t = void>
Compares two entities and returns a value indicating whether one is less than, equal to, or greater than the other.
- Parameters
-
x | The first entity to compare. |
y | The second entity to compare. |
- Returns
- A 32-bit signed integer that indicates the relative order of the entities being compared. The return value has these meanings:
Value | Condition |
Less than zero | x is less than y. |
Zero | x equals y. |
Greater than zero | x is greater than y. |
The documentation for this struct was generated from the following file:
- xtd.core/include/xtd/collections/generic/helpers/comparer.hpp