Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:53:32

0001 //
0002 // Copyright (c) 2018 James E. King III
0003 //
0004 // Distributed under the Boost Software License, Version 1.0.
0005 // (See accompanying file LICENSE_1_0.txt or copy at
0006 //   https://www.boost.org/LICENSE_1_0.txt)
0007 //
0008 // std::hash support for uuid
0009 //
0010 
0011 #ifndef BOOST_UUID_HASH_HPP
0012 #define BOOST_UUID_HASH_HPP
0013 
0014 #include <boost/config.hpp>
0015 #include <boost/container_hash/hash.hpp>
0016 #include <boost/uuid/uuid.hpp>
0017 
0018 #ifdef BOOST_HAS_PRAGMA_ONCE
0019 #pragma once
0020 #endif
0021 
0022 #ifndef BOOST_NO_CXX11_HDR_FUNCTIONAL
0023 
0024 #include <cstddef>
0025 #include <functional>
0026 
0027 namespace std
0028 {
0029     template<>
0030     struct hash<boost::uuids::uuid>
0031     {
0032         std::size_t operator () (const boost::uuids::uuid& value) const BOOST_NOEXCEPT
0033         {
0034             return boost::uuids::hash_value(value);
0035         }
0036     };
0037 }
0038 
0039 #endif /* !BOOST_NO_CXX11_HDR_FUNCTIONAL */
0040 #endif /* !BOOST_UUID_HASH_HPP */