| chigraph master Systems programming language written for beginners in LLVM

HashUuid.hpp
Go to the documentation of this file.
1
3 #pragma once
4
5 #ifndef CHI_HASH_UUID
6 #define CHI_HASH_UUID
7
8 #include <boost/uuid/uuid.hpp>
9 #include <functional>
10
11 namespace std {
12
14 template <>
15 struct hash<boost::uuids::uuid> {
19 size_t operator()(const boost::uuids::uuid& toHash) const {
20 return boost::uuids::hash_value(toHash);
21 }
22 };
23 }
24
25 #endif // CHI_HASH_UUID
std
STL namespace.
std::hash< boost::uuids::uuid >::operator()
size_t operator()(const boost::uuids::uuid &toHash) const
The hash function.
Definition: HashUuid.hpp:19