containers.hpp 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Copyright 2006-2009 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. // clang-format off
  5. #include "../helpers/prefix.hpp"
  6. #include <boost/unordered_map.hpp>
  7. #include <boost/unordered_set.hpp>
  8. #include "../helpers/postfix.hpp"
  9. // clang-format on
  10. #include "../objects/exception.hpp"
  11. typedef boost::unordered_set<test::exception::object, test::exception::hash,
  12. test::exception::equal_to,
  13. test::exception::allocator<test::exception::object> >
  14. test_set;
  15. typedef boost::unordered_multiset<test::exception::object,
  16. test::exception::hash, test::exception::equal_to,
  17. test::exception::allocator2<test::exception::object> >
  18. test_multiset;
  19. typedef boost::unordered_map<test::exception::object, test::exception::object,
  20. test::exception::hash, test::exception::equal_to,
  21. test::exception::allocator2<test::exception::object> >
  22. test_map;
  23. typedef boost::unordered_multimap<test::exception::object,
  24. test::exception::object, test::exception::hash, test::exception::equal_to,
  25. test::exception::allocator<test::exception::object> >
  26. test_multimap;
  27. typedef boost::unordered_set<
  28. std::pair<test::exception::object, test::exception::object>,
  29. test::exception::hash, test::exception::equal_to,
  30. test::exception::allocator<test::exception::object> >
  31. test_pair_set;
  32. typedef boost::unordered_multiset<
  33. std::pair<test::exception::object, test::exception::object>,
  34. test::exception::hash, test::exception::equal_to,
  35. test::exception::allocator2<test::exception::object> >
  36. test_pair_multiset;
  37. #define CONTAINER_SEQ (test_set)(test_multiset)(test_map)(test_multimap)
  38. #define CONTAINER_PAIR_SEQ \
  39. (test_pair_set)(test_pair_multiset)(test_map)(test_multimap)