template<class type_t = void>
struct xtd::collections::generic::helpers::lesser< type_t >
Implements a function object for compare data.
lesser()=default
Initializes a new instance of the comparer.
- Header
#include <xtd/collections/generic/helpers/lesser>
- Namespace
- xtd::collections::generic::helpers
- Library
- xtd.core
- Examples
- The following example show how to use xtd::collections::generic::helpers::lesser with
std::unordered_map.
key_values.insert({{1971, 1, 5}, "Birth date"});
std::allocator< type_t > allocator
Represent an allocator alias.
Definition allocator.hpp:38
◆ 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.
◆ lesser() [1/2]
template<class type_t = void>
Initializes a new instance of the comparer.
◆ lesser() [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>
Serves as a hash function for a specified key with a particular type (type_t).
- Parameters
-
- Returns
- A hash code for the spesified key.
The documentation for this struct was generated from the following file:
- xtd.core/include/xtd/collections/generic/helpers/lesser.hpp