]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/container/test/flat_tree_test.cpp
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / libs / container / test / flat_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/flat_tree.hpp>
11 #include <boost/container/small_vector.hpp>
12 #include <boost/container/stable_vector.hpp>
13 #include <boost/container/static_vector.hpp>
14
15 #include "movable_int.hpp"
16 #include "dummy_test_allocator.hpp"
17
18 using namespace boost::container;
19
20 typedef boost::container::dtl::pair<test::movable_and_copyable_int, test::movable_and_copyable_int> pair_t;
21
22 namespace boost {
23 namespace container {
24
25 //Explicit instantiation to detect compilation errors
26
27 namespace dtl {
28
29 template class flat_tree
30 < pair_t
31 , select1st<test::movable_and_copyable_int>
32 , std::less<test::movable_and_copyable_int>
33 , test::simple_allocator<pair_t>
34 >;
35
36 template class flat_tree
37 < pair_t
38 , select1st<test::movable_and_copyable_int>
39 , std::less<test::movable_and_copyable_int>
40 , std::allocator<pair_t>
41 >;
42
43 template class flat_tree
44 < pair_t
45 , select1st<test::movable_and_copyable_int>
46 , std::less<test::movable_and_copyable_int>
47 , small_vector<pair_t, 10>
48 >;
49
50 template class flat_tree
51 < pair_t
52 , select1st<test::movable_and_copyable_int>
53 , std::less<test::movable_and_copyable_int>
54 , stable_vector<pair_t>
55 >;
56
57 template class flat_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 >;
63
64 template class flat_tree
65 < test::movable_and_copyable_int
66 , identity<test::movable_and_copyable_int>
67 , std::less<test::movable_and_copyable_int>
68 , std::allocator<test::movable_and_copyable_int>
69 >;
70
71 template class flat_tree
72 < test::movable_and_copyable_int
73 , identity<test::movable_and_copyable_int>
74 , std::less<test::movable_and_copyable_int>
75 , small_vector<test::movable_and_copyable_int, 10>
76 >;
77
78 template class flat_tree
79 < test::movable_and_copyable_int
80 , identity<test::movable_and_copyable_int>
81 , std::less<test::movable_and_copyable_int>
82 , stable_vector<test::movable_and_copyable_int>
83 >;
84
85 template class flat_tree
86 < test::movable_and_copyable_int
87 , identity<test::movable_and_copyable_int>
88 , std::less<test::movable_and_copyable_int>
89 , static_vector<test::movable_and_copyable_int, 10>
90 >;
91
92 } //dtl {
93 }} //boost::container
94
95 #if (__cplusplus > 201103L)
96 #include <vector>
97
98 namespace boost{
99 namespace container{
100 namespace dtl{
101
102 template class flat_tree
103 < test::movable_and_copyable_int
104 , identity<test::movable_and_copyable_int>
105 , std::less<test::movable_and_copyable_int>
106 , std::vector<test::movable_and_copyable_int>
107 >;
108
109 template class flat_tree
110 < pair_t
111 , select1st<test::movable_and_copyable_int>
112 , std::less<test::movable_and_copyable_int>
113 , std::vector<pair_t>
114 >;
115
116 } //dtl {
117 }} //boost::container
118
119 #endif
120
121 int main ()
122 {
123 return 0;
124 }