File indexing completed on 2025-10-31 08:57:52
0001 
0002 
0003 
0004 
0005 
0006 
0007 #ifndef BOOST_UNORDERED_FLAT_MAP_FWD_HPP_INCLUDED
0008 #define BOOST_UNORDERED_FLAT_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_flat_map;
0029 
0030     template <class Key, class T, class Hash, class KeyEqual, class Allocator>
0031     bool operator==(
0032       unordered_flat_map<Key, T, Hash, KeyEqual, Allocator> const& lhs,
0033       unordered_flat_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_flat_map<Key, T, Hash, KeyEqual, Allocator> const& lhs,
0038       unordered_flat_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_flat_map<Key, T, Hash, KeyEqual, Allocator>& lhs,
0042       unordered_flat_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_flat_map =
0050         boost::unordered::unordered_flat_map<Key, T, Hash, KeyEqual,
0051           std::pmr::polymorphic_allocator<std::pair<const Key, T> > >;
0052     } 
0053 #endif
0054   } 
0055 
0056   using boost::unordered::unordered_flat_map;
0057 } 
0058 
0059 #endif