5#define __XTD_CORE_INTERNAL__
7#undef __XTD_CORE_INTERNAL__
68 if (comparer)
return comparer->get_hash_code(key);
69 return __polymorphic_hasher__<argument_type, typename std::is_polymorphic<argument_type>::type> {}(key);
Contains polymorphic_hasher structs.
Defines methods to support the comparison of objects for equality.
Definition iequality_comparer.hpp:34
Contains xtd::collections::generic::iequality_comparer <type_t> interface.
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
The xtd::collections::generic::helpers namespace contains helpers for generic collections,...
Definition allocator.hpp:14
The xtd::collections::generic namespace contains interfaces and classes that define generic collectio...
Definition comparer.hpp:16
The xtd::collections namespace contains interfaces and classes that define various collections of obj...
Definition any_pair.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Implements a function object for compare data.
Definition comparer.hpp:32
auto operator()(const argument_type &key) const -> result_type
Serves as a hash function for a specified key with a particular type (type_t).
Definition hasher.hpp:67
hasher()=default
Initializes a new instance of the hasher.
key_t argument_type
Represents the argument type.
Definition hasher.hpp:45
xtd::size result_type
Represents the result type.
Definition hasher.hpp:47
hasher(const xtd::collections::generic::iequality_comparer< key_t > &comparer)
Initializes a new instance of the hasher with specified comparer.
Definition hasher.hpp:57