template<class type_t = void>
struct xtd::collections::generic::helpers::comparer< type_t >
Implements a function object for compare data.
comparer()=default
Initializes a new instance of the comparer.
- 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.
◆ comparer() [1/2]
template<class type_t = void>
Initializes a new instance of the comparer.
◆ comparer() [2/2]
template<class type_t = void>
Initializes a new instance of the comparer with specified comparer.
- Parameters
-
| comparer | A comparer used to hash the key. |
◆ 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