Imported Upstream version 1.64.0
[platform/upstream/boost.git] / libs / unordered / test / exception / containers.hpp
1
2 // Copyright 2006-2009 Daniel James.
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6 // clang-format off
7 #include "../helpers/prefix.hpp"
8 #include <boost/unordered_map.hpp>
9 #include <boost/unordered_set.hpp>
10 #include "../helpers/postfix.hpp"
11 // clang-format on
12
13 #include "../objects/exception.hpp"
14
15 typedef boost::unordered_set<test::exception::object, test::exception::hash,
16     test::exception::equal_to,
17     test::exception::allocator<test::exception::object> >
18     test_set;
19 typedef boost::unordered_multiset<test::exception::object,
20     test::exception::hash, test::exception::equal_to,
21     test::exception::allocator2<test::exception::object> >
22     test_multiset;
23 typedef boost::unordered_map<test::exception::object, test::exception::object,
24     test::exception::hash, test::exception::equal_to,
25     test::exception::allocator2<test::exception::object> >
26     test_map;
27 typedef boost::unordered_multimap<test::exception::object,
28     test::exception::object, test::exception::hash, test::exception::equal_to,
29     test::exception::allocator<test::exception::object> >
30     test_multimap;
31 typedef boost::unordered_set<
32     std::pair<test::exception::object, test::exception::object>,
33     test::exception::hash, test::exception::equal_to,
34     test::exception::allocator<test::exception::object> >
35     test_pair_set;
36 typedef boost::unordered_multiset<
37     std::pair<test::exception::object, test::exception::object>,
38     test::exception::hash, test::exception::equal_to,
39     test::exception::allocator2<test::exception::object> >
40     test_pair_multiset;
41
42 #define CONTAINER_SEQ (test_set)(test_multiset)(test_map)(test_multimap)
43 #define CONTAINER_PAIR_SEQ                                                     \
44     (test_pair_set)(test_pair_multiset)(test_map)(test_multimap)