Metall  v0.28
A persistent memory allocator for data-centric analytics
hash.hpp
Go to the documentation of this file.
1 // Copyright 2020 Lawrence Livermore National Security, LLC and other Metall
2 // Project Developers. See the top-level COPYRIGHT file for details.
3 //
4 // SPDX-License-Identifier: (Apache-2.0 OR MIT)
5 
6 #ifndef METALL_UTILITY_HASH_HPP
7 #define METALL_UTILITY_HASH_HPP
8 
9 #include <metall/detail/hash.hpp>
10 
11 namespace metall::utility {
12 
17 template <typename T = void, unsigned int seed = 123>
18 using hash = metall::mtlldetail::hash<seed>;
19 
22 template <unsigned int seed = 123>
23 using str_hash = metall::mtlldetail::str_hash<seed>;
24 
25 } // namespace metall::utility
26 
27 #endif // METALL_UTILITY_HASH_HPP
Namespace for utility items.
metall::mtlldetail::hash< seed > hash
Hash a value of type T.
Definition: hash.hpp:18
metall::mtlldetail::str_hash< seed > str_hash
Hash function for std::string-compatible string container.
Definition: hash.hpp:23