File indexing completed on 2025-07-03 08:31:59
0001
0002
0003
0004
0005
0006
0007 #ifndef BOOST_UNORDERED_FLAT_SET_FWD_HPP_INCLUDED
0008 #define BOOST_UNORDERED_FLAT_SET_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 Hash = boost::hash<Key>,
0026 class KeyEqual = std::equal_to<Key>,
0027 class Allocator = std::allocator<Key> >
0028 class unordered_flat_set;
0029
0030 template <class Key, class Hash, class KeyEqual, class Allocator>
0031 bool operator==(
0032 unordered_flat_set<Key, Hash, KeyEqual, Allocator> const& lhs,
0033 unordered_flat_set<Key, Hash, KeyEqual, Allocator> const& rhs);
0034
0035 template <class Key, class Hash, class KeyEqual, class Allocator>
0036 bool operator!=(
0037 unordered_flat_set<Key, Hash, KeyEqual, Allocator> const& lhs,
0038 unordered_flat_set<Key, Hash, KeyEqual, Allocator> const& rhs);
0039
0040 template <class Key, class Hash, class KeyEqual, class Allocator>
0041 void swap(unordered_flat_set<Key, Hash, KeyEqual, Allocator>& lhs,
0042 unordered_flat_set<Key, 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 Hash = boost::hash<Key>,
0048 class KeyEqual = std::equal_to<Key> >
0049 using unordered_flat_set = boost::unordered::unordered_flat_set<Key, Hash,
0050 KeyEqual, std::pmr::polymorphic_allocator<Key> >;
0051 }
0052 #endif
0053 }
0054
0055 using boost::unordered::unordered_flat_set;
0056 }
0057
0058 #endif