]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/container/test/explicit_inst_vector_test.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / container / test / explicit_inst_vector_test.cpp
1 //////////////////////////////////////////////////////////////////////////////
2 //
3 // (C) Copyright Ion Gaztanaga 2015-2015. 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
11 #include <boost/container/vector.hpp>
12
13 struct empty
14 {
15 friend bool operator == (const empty &, const empty &){ return true; }
16 friend bool operator < (const empty &, const empty &){ return true; }
17 };
18
19 template class ::boost::container::vector<empty>;
20 volatile ::boost::container::vector<empty> dummy;
21
22 #include <boost/container/allocator.hpp>
23 #include "movable_int.hpp"
24 #include "dummy_test_allocator.hpp"
25
26 namespace boost {
27 namespace container {
28
29 //Explicit instantiation to detect compilation errors
30 template class boost::container::vector
31 < test::movable_and_copyable_int
32 , test::simple_allocator<test::movable_and_copyable_int> >;
33
34 template class boost::container::vector
35 < test::movable_and_copyable_int
36 , allocator<test::movable_and_copyable_int> >;
37
38 template class vec_iterator<int*, true >;
39 template class vec_iterator<int*, false>;
40
41 } //namespace boost {
42 } //namespace container {
43
44 int main()
45 {
46 return 0;
47 }