concurrent_flat_set_fwd.hpp 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* Fast open-addressing concurrent hashset.
  2. *
  3. * Copyright 2023 Christian Mazakas.
  4. * Copyright 2023 Joaquin M Lopez Munoz.
  5. * Distributed under the Boost Software License, Version 1.0.
  6. * (See accompanying file LICENSE_1_0.txt or copy at
  7. * http://www.boost.org/LICENSE_1_0.txt)
  8. *
  9. * See https://www.boost.org/libs/unordered for library home page.
  10. */
  11. #ifndef BOOST_UNORDERED_CONCURRENT_FLAT_SET_FWD_HPP
  12. #define BOOST_UNORDERED_CONCURRENT_FLAT_SET_FWD_HPP
  13. #include <boost/container_hash/hash_fwd.hpp>
  14. #include <functional>
  15. #include <memory>
  16. namespace boost {
  17. namespace unordered {
  18. template <class Key, class Hash = boost::hash<Key>,
  19. class Pred = std::equal_to<Key>,
  20. class Allocator = std::allocator<Key> >
  21. class concurrent_flat_set;
  22. template <class Key, class Hash, class KeyEqual, class Allocator>
  23. bool operator==(
  24. concurrent_flat_set<Key, Hash, KeyEqual, Allocator> const& lhs,
  25. concurrent_flat_set<Key, Hash, KeyEqual, Allocator> const& rhs);
  26. template <class Key, class Hash, class KeyEqual, class Allocator>
  27. bool operator!=(
  28. concurrent_flat_set<Key, Hash, KeyEqual, Allocator> const& lhs,
  29. concurrent_flat_set<Key, Hash, KeyEqual, Allocator> const& rhs);
  30. template <class Key, class Hash, class Pred, class Alloc>
  31. void swap(concurrent_flat_set<Key, Hash, Pred, Alloc>& x,
  32. concurrent_flat_set<Key, Hash, Pred, Alloc>& y)
  33. noexcept(noexcept(x.swap(y)));
  34. template <class K, class H, class P, class A, class Predicate>
  35. typename concurrent_flat_set<K, H, P, A>::size_type erase_if(
  36. concurrent_flat_set<K, H, P, A>& c, Predicate pred);
  37. } // namespace unordered
  38. using boost::unordered::concurrent_flat_set;
  39. } // namespace boost
  40. #endif // BOOST_UNORDERED_CONCURRENT_FLAT_SET_FWD_HPP