Implements a function object for hashing data.
Public Aliases | |
| using | argument_type |
| Represents the argument type. | |
| using | result_type |
| Represents the result type. | |
Public Constructors | |
| hasher () noexcept=default | |
| Initializes a new instance of the hasher. | |
| hasher (const xtd::collections::generic::iequality_comparer< key_t > &comparer) noexcept | |
| Initializes a new instance of the hasher with specified comparer. | |
Public Operators | |
| auto | operator() (const argument_type &key) const noexcept -> result_type |
| Serves as a hash function for a specified key with a particular type (type_t). | |
| using xtd::collections::generic::helpers::hasher< key_t >::argument_type |
Represents the argument type.
| using xtd::collections::generic::helpers::hasher< key_t >::result_type |
Represents the result type.
|
defaultnoexcept |
Initializes a new instance of the hasher.
|
inlineexplicitnoexcept |
Initializes a new instance of the hasher with specified comparer.
| comparer | A comparer used to hash the key. |
|
inlinenoexcept |
Serves as a hash function for a specified key with a particular type (type_t).
| key | The key to hash. |