123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- #ifndef BOOST_UNORDERED_CONCURRENT_FLAT_MAP_FWD_HPP
- #define BOOST_UNORDERED_CONCURRENT_FLAT_MAP_FWD_HPP
- #include <boost/config.hpp>
- #include <boost/container_hash/hash_fwd.hpp>
- #include <functional>
- #include <memory>
- #ifndef BOOST_NO_CXX17_HDR_MEMORY_RESOURCE
- #include <memory_resource>
- #endif
- namespace boost {
- namespace unordered {
- template <class Key, class T, class Hash = boost::hash<Key>,
- class Pred = std::equal_to<Key>,
- class Allocator = std::allocator<std::pair<Key const, T> > >
- class concurrent_flat_map;
- template <class Key, class T, class Hash, class KeyEqual, class Allocator>
- bool operator==(
- concurrent_flat_map<Key, T, Hash, KeyEqual, Allocator> const& lhs,
- concurrent_flat_map<Key, T, Hash, KeyEqual, Allocator> const& rhs);
- template <class Key, class T, class Hash, class KeyEqual, class Allocator>
- bool operator!=(
- concurrent_flat_map<Key, T, Hash, KeyEqual, Allocator> const& lhs,
- concurrent_flat_map<Key, T, Hash, KeyEqual, Allocator> const& rhs);
- template <class Key, class T, class Hash, class Pred, class Alloc>
- void swap(concurrent_flat_map<Key, T, Hash, Pred, Alloc>& x,
- concurrent_flat_map<Key, T, Hash, Pred, Alloc>& y)
- noexcept(noexcept(x.swap(y)));
- template <class K, class T, class H, class P, class A, class Predicate>
- typename concurrent_flat_map<K, T, H, P, A>::size_type erase_if(
- concurrent_flat_map<K, T, H, P, A>& c, Predicate pred);
- #ifndef BOOST_NO_CXX17_HDR_MEMORY_RESOURCE
- namespace pmr {
- template <class Key, class T, class Hash = boost::hash<Key>,
- class Pred = std::equal_to<Key> >
- using concurrent_flat_map = boost::unordered::concurrent_flat_map<Key, T,
- Hash, Pred, std::pmr::polymorphic_allocator<std::pair<Key const, T> > >;
- }
- #endif
- }
- using boost::unordered::concurrent_flat_map;
- }
- #endif
|