]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/container/test/tree_test.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / container / test / tree_test.cpp
1 //////////////////////////////////////////////////////////////////////////////
2 //
3 // (C) Copyright Ion Gaztanaga 2004-2013. Distributed under the Boost
4 // Software License, Version 1.0. (See accompanying file
5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 //
7 // See http://www.boost.org/libs/container for documentation.
8 //
9 //////////////////////////////////////////////////////////////////////////////
10 #include <boost/container/detail/tree.hpp>
11 #include <boost/container/adaptive_pool.hpp>
12 #include <boost/container/new_allocator.hpp>
13 #include <boost/move/traits.hpp>
14
15 #include <iostream>
16 #include <memory> //for std::allocator
17
18 #include "movable_int.hpp"
19 #include "dummy_test_allocator.hpp"
20
21 using namespace boost::container;
22
23 typedef std::pair<const test::movable_and_copyable_int, test::movable_and_copyable_int> pair_t;
24
25 namespace boost {
26 namespace container {
27
28 //Explicit instantiation to detect compilation errors
29
30 namespace dtl {
31
32 //Instantiate base class as previous instantiations don't instantiate inherited members
33 template class tree
34 < pair_t
35 , select1st<test::movable_and_copyable_int>
36 , std::less<test::movable_and_copyable_int>
37 , test::simple_allocator<pair_t>
38 , tree_assoc_defaults
39 >;
40
41 template class tree
42 < pair_t
43 , select1st<test::movable_and_copyable_int>
44 , std::less<test::movable_and_copyable_int>
45 , std::allocator<pair_t>
46 , tree_assoc_defaults
47 >;
48
49 template class tree
50 < pair_t
51 , select1st<test::movable_and_copyable_int>
52 , std::less<test::movable_and_copyable_int>
53 , adaptive_pool<pair_t>
54 , tree_assoc_defaults
55 >;
56
57 template class tree
58 < test::movable_and_copyable_int
59 , identity<test::movable_and_copyable_int>
60 , std::less<test::movable_and_copyable_int>
61 , test::simple_allocator<test::movable_and_copyable_int>
62 , tree_assoc_defaults
63 >;
64
65 template class tree
66 < test::movable_and_copyable_int
67 , identity<test::movable_and_copyable_int>
68 , std::less<test::movable_and_copyable_int>
69 , std::allocator<test::movable_and_copyable_int>
70 , tree_assoc_defaults
71 >;
72
73 template class tree
74 < test::movable_and_copyable_int
75 , identity<test::movable_and_copyable_int>
76 , std::less<test::movable_and_copyable_int>
77 , adaptive_pool<test::movable_and_copyable_int>
78 , tree_assoc_defaults
79 >;
80
81 } //dtl {
82
83 }} //boost::container
84
85 int main ()
86 {
87 return 0;
88 }