• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #include "bench_set.hpp"
14 
main()15 int main()
16 {
17    using namespace boost::container;
18 
19    fill_range_ints();
20    fill_range_strings();
21 
22    //set vs std::set
23    launch_tests< set<int> , std::set<int> >
24       ("set<int>", "std::set<int>");
25    launch_tests< set<string> , std::set<string> >
26       ("set<string>", "std::set<string>");
27 
28    //set(sizeopt) vs set(!sizeopt)
29    launch_tests< set<int>, set<int, std::less<int>, std::allocator<int>, tree_assoc_options< optimize_size<false> >::type > >
30       ("set<int>(sizeopt=true)", "set<int>(sizeopt=false)");
31    launch_tests< set<string>, set<string, std::less<string>, std::allocator<string>, tree_assoc_options< optimize_size<false> >::type > >
32       ("set<string>(sizeopt=true)", "set<string>(sizeopt=false)");
33 
34    return 0;
35 }
36