]>
Commit | Line | Data |
---|---|---|
20effc67 TL |
1 | ////////////////////////////////////////////////////////////////////////////// |
2 | // | |
3 | // \(C\) Copyright Benedek Thaler 2015-2016 | |
4 | // \(C\) Copyright Ion Gaztanaga 2019-2020. Distributed under the Boost | |
5 | // Software License, Version 1.0. (See accompanying file | |
6 | // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
7 | // | |
8 | // See http://www.boost.org/libs/container for documentation. | |
9 | // | |
10 | ////////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #include <boost/container/devector.hpp> | |
13 | #include "movable_int.hpp" | |
14 | ||
15 | struct empty | |
16 | { | |
17 | friend bool operator == (const empty &, const empty &){ return true; } | |
18 | friend bool operator < (const empty &, const empty &){ return true; } | |
19 | }; | |
20 | ||
21 | template class ::boost::container::devector<empty>; | |
22 | ||
23 | namespace boost { | |
24 | namespace container { | |
25 | ||
26 | //Test stored_size option | |
27 | template class devector< test::movable_and_copyable_int | |
28 | , new_allocator<test::movable_and_copyable_int> | |
29 | , devector_options< stored_size<unsigned short> >::type | |
30 | >; | |
31 | ||
32 | ||
33 | } //namespace container { | |
34 | } //namespace boost { | |
35 | ||
36 | int main() | |
37 | { | |
38 | ::boost::container::devector<empty> dummy; | |
39 | (void)dummy; | |
40 | return 0; | |
41 | } |