Brian Silverman | fad8f55 | 2018-08-04 23:36:19 -0700 | [diff] [blame^] | 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 | |
| 11 | #include "boost/container/set.hpp" |
| 12 | #include <set> |
| 13 | |
| 14 | #include "bench_set.hpp" |
| 15 | |
| 16 | int main() |
| 17 | { |
| 18 | using namespace boost::container; |
| 19 | |
| 20 | fill_range_ints(); |
| 21 | fill_range_strings(); |
| 22 | |
| 23 | //set(AVL) vs set(RB) |
| 24 | launch_tests< set<int, std::less<int>, std::allocator<int>, tree_assoc_options< tree_type<avl_tree> >::type >, set<int> > |
| 25 | ("set<int>(AVL)", "set<int>(RB)"); |
| 26 | launch_tests< set<string, std::less<string>, std::allocator<string>, tree_assoc_options< tree_type<avl_tree> >::type >, set<string> > |
| 27 | ("set<string>(AVL)", "set<string>(RB)"); |
| 28 | |
| 29 | //set(AVL,sizeopt) vs set(AVL,!sizeopt) |
| 30 | launch_tests< set<int, std::less<int>, std::allocator<int>, tree_assoc_options< tree_type<avl_tree> >::type > |
| 31 | , set<int, std::less<int>, std::allocator<int>, tree_assoc_options< tree_type<avl_tree>, optimize_size<false> >::type > > |
| 32 | ("set<int>(AVL,sizeopt=true)", "set<int>(AVL,sizeopt=false)"); |
| 33 | launch_tests< set<string, std::less<string>, std::allocator<string>, tree_assoc_options< tree_type<avl_tree> >::type > |
| 34 | , set<string, std::less<string>, std::allocator<string>, tree_assoc_options< tree_type<avl_tree>, optimize_size<false> >::type > > |
| 35 | ("set<string>(AVL,sizeopt=true)", "set<string>(AVL,sizeopt=false)"); |
| 36 | |
| 37 | return 0; |
| 38 | } |