xtd
0.2.0
Loading...
Searching...
No Matches
xtd.core
include
xtd
collections
generic
helpers
hasher.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#define __XTD_CORE_INTERNAL__
6
#include "../../../internal/__hasher.hpp"
7
#undef __XTD_CORE_INTERNAL__
8
10
namespace
xtd
{
12
namespace
collections {
14
namespace
generic {
16
namespace
helpers {
37
template
<
typename
key_t>
38
struct
hasher
{
40
46
size_t
operator()
(
const
key_t& key)
const
{
return
__polymorphic_hasher__<key_t, typename std::is_polymorphic<key_t>::type> {}(key);}
48
};
49
}
50
}
51
}
52
}
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
xtd_about_box.hpp:10
xtd::collections::generic::helpers::hasher
Implements a function object for hashing data.
Definition
hasher.hpp:38
xtd::collections::generic::helpers::hasher::operator()
size_t operator()(const key_t &key) const
Serves as a hash function for a specified key with a particular type (type_t).
Definition
hasher.hpp:46
Generated on Sat Dec 21 2024 19:38:59 for xtd by
Gammasoft
. All rights reserved.