template<typename key_t = void>
struct xtd::collections::generic::helpers::equator< key_t >
Implements a function object for performing comparisons. Unless specialised, invokes operator== on type type_t. xtd::equator with the key and the value strongly typed to be std::any.
Implements a function object for performing comparisons. Unless specialised, invokes operator== on ty...
Definition equator.h:37
- Header
#include <xtd/collections/equator>
- Namespace
- xtd::collections::generic
- Library
- xtd.core
- Examples
- The following example show how to use xtd::collections::generic::helpers::equator with
std::unordered_map
.
key_values.insert({{1971, 1, 5}, "Birth date"});
std::allocator< type_t > allocator
Represent an allocator alias.
Definition allocator.h:35
|
bool | operator() (const key_t &a, const key_t &b) const |
| checks if the specified a and b keys are equal.
|
|
◆ operator()()
template<typename key_t = void>
checks if the specified a and b keys are equal.
- Parameters
-
a | The first key to check. |
b | The second key to check. |
- Returns
- true if keys are equals; otherwise false.
The documentation for this struct was generated from the following file:
- xtd.core/include/xtd/collections/generic/helpers/equator.h