xtd 0.2.0
Loading...
Searching...
No Matches
hasher.hpp
Go to the documentation of this file.
1
4#pragma once
5#define __XTD_CORE_INTERNAL__
6#include "../../../internal/__polymorphic_hasher.hpp"
7#undef __XTD_CORE_INTERNAL__
8
10namespace xtd {
12 namespace collections {
14 namespace generic {
16 namespace helpers {
38 template<class key_t>
39 struct hasher {
41
44 using argument_type = key_t;
48
50
56 result_type operator()(const argument_type& key) const {return __polymorphic_hasher__<argument_type, typename std::is_polymorphic<argument_type>::type> {}(key);}
58 };
59 }
60 }
61 }
62}
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Implements a function object for hashing data.
Definition hasher.hpp:39
key_t argument_type
Represents the argument type.
Definition hasher.hpp:44
xtd::size result_type
Represents the result type.
Definition hasher.hpp:46
result_type operator()(const argument_type &key) const
Serves as a hash function for a specified key with a particular type (type_t).
Definition hasher.hpp:56