unordered_set_fwd.hpp 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // Copyright (C) 2008-2011 Daniel James.
  2. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  3. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. #ifndef BOOST_UNORDERED_SET_FWD_HPP_INCLUDED
  5. #define BOOST_UNORDERED_SET_FWD_HPP_INCLUDED
  6. #include <boost/config.hpp>
  7. #if defined(BOOST_HAS_PRAGMA_ONCE)
  8. #pragma once
  9. #endif
  10. #include <boost/functional/hash_fwd.hpp>
  11. #include <boost/unordered/detail/fwd.hpp>
  12. #include <functional>
  13. #include <memory>
  14. namespace boost {
  15. namespace unordered {
  16. template <class T, class H = boost::hash<T>, class P = std::equal_to<T>,
  17. class A = std::allocator<T> >
  18. class unordered_set;
  19. template <class T, class H, class P, class A>
  20. inline bool operator==(
  21. unordered_set<T, H, P, A> const&, unordered_set<T, H, P, A> const&);
  22. template <class T, class H, class P, class A>
  23. inline bool operator!=(
  24. unordered_set<T, H, P, A> const&, unordered_set<T, H, P, A> const&);
  25. template <class T, class H, class P, class A>
  26. inline void swap(
  27. unordered_set<T, H, P, A>& m1, unordered_set<T, H, P, A>& m2)
  28. BOOST_NOEXCEPT_IF(BOOST_NOEXCEPT_EXPR(m1.swap(m2)));
  29. template <class T, class H = boost::hash<T>, class P = std::equal_to<T>,
  30. class A = std::allocator<T> >
  31. class unordered_multiset;
  32. template <class T, class H, class P, class A>
  33. inline bool operator==(unordered_multiset<T, H, P, A> const&,
  34. unordered_multiset<T, H, P, A> const&);
  35. template <class T, class H, class P, class A>
  36. inline bool operator!=(unordered_multiset<T, H, P, A> const&,
  37. unordered_multiset<T, H, P, A> const&);
  38. template <class T, class H, class P, class A>
  39. inline void swap(
  40. unordered_multiset<T, H, P, A>& m1, unordered_multiset<T, H, P, A>& m2)
  41. BOOST_NOEXCEPT_IF(BOOST_NOEXCEPT_EXPR(m1.swap(m2)));
  42. template <class N, class T, class A> class node_handle_set;
  43. template <class N, class T, class A> struct insert_return_type_set;
  44. }
  45. using boost::unordered::unordered_set;
  46. using boost::unordered::unordered_multiset;
  47. using boost::unordered::swap;
  48. using boost::unordered::operator==;
  49. using boost::unordered::operator!=;
  50. }
  51. #endif