Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-07-01 08:33:12

0001 
0002 // Copyright (C) 2022 Christian Mazakas
0003 // Copyright (C) 2024 Braden Ganetsky
0004 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0005 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 
0007 #ifndef BOOST_UNORDERED_NODE_MAP_FWD_HPP_INCLUDED
0008 #define BOOST_UNORDERED_NODE_MAP_FWD_HPP_INCLUDED
0009 
0010 #include <boost/config.hpp>
0011 #if defined(BOOST_HAS_PRAGMA_ONCE)
0012 #pragma once
0013 #endif
0014 
0015 #include <boost/container_hash/hash_fwd.hpp>
0016 #include <functional>
0017 #include <memory>
0018 
0019 #ifndef BOOST_NO_CXX17_HDR_MEMORY_RESOURCE
0020 #include <memory_resource>
0021 #endif
0022 
0023 namespace boost {
0024   namespace unordered {
0025     template <class Key, class T, class Hash = boost::hash<Key>,
0026       class KeyEqual = std::equal_to<Key>,
0027       class Allocator = std::allocator<std::pair<const Key, T> > >
0028     class unordered_node_map;
0029 
0030     template <class Key, class T, class Hash, class KeyEqual, class Allocator>
0031     bool operator==(
0032       unordered_node_map<Key, T, Hash, KeyEqual, Allocator> const& lhs,
0033       unordered_node_map<Key, T, Hash, KeyEqual, Allocator> const& rhs);
0034 
0035     template <class Key, class T, class Hash, class KeyEqual, class Allocator>
0036     bool operator!=(
0037       unordered_node_map<Key, T, Hash, KeyEqual, Allocator> const& lhs,
0038       unordered_node_map<Key, T, Hash, KeyEqual, Allocator> const& rhs);
0039 
0040     template <class Key, class T, class Hash, class KeyEqual, class Allocator>
0041     void swap(unordered_node_map<Key, T, Hash, KeyEqual, Allocator>& lhs,
0042       unordered_node_map<Key, T, Hash, KeyEqual, Allocator>& rhs)
0043       noexcept(noexcept(lhs.swap(rhs)));
0044 
0045 #ifndef BOOST_NO_CXX17_HDR_MEMORY_RESOURCE
0046     namespace pmr {
0047       template <class Key, class T, class Hash = boost::hash<Key>,
0048         class KeyEqual = std::equal_to<Key> >
0049       using unordered_node_map =
0050         boost::unordered::unordered_node_map<Key, T, Hash, KeyEqual,
0051           std::pmr::polymorphic_allocator<std::pair<const Key, T> > >;
0052     } // namespace pmr
0053 #endif
0054   } // namespace unordered
0055 
0056   using boost::unordered::unordered_node_map;
0057 } // namespace boost
0058 
0059 #endif