1 //////////////////////////////////////////////////////////////////////////////
2 //
3 // (C) Copyright Ion Gaztanaga 2013-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 //Enable checks in debug mode
11 #ifndef NDEBUG
12 #define BOOST_CONTAINER_ADAPTIVE_NODE_POOL_CHECK_INVARIANTS
13 #endif
14
15 #include "bench_set.hpp"
16 #include <boost/container/set.hpp>
17 #include <boost/container/allocator.hpp>
18 #include <boost/container/adaptive_pool.hpp>
19
main()20 int main()
21 {
22 using namespace boost::container;
23
24 fill_range_ints();
25 fill_range_strings();
26
27 //set<..., adaptive_pool> vs. set
28 launch_tests< set<int, std::less<int>, private_adaptive_pool<int> >, set<int> >
29 ("set<int, ..., private_adaptive_pool<int>", "set<int>");
30 launch_tests< set<string, std::less<string>, private_adaptive_pool<string> >, set<string> >
31 ("set<string, ..., private_adaptive_pool<string>", "set<string>");
32
33 return 0;
34 }
35