2013-09-26 18:05:25 +00:00
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// (C) Copyright Ion Gaztanaga 2013-2013. Distributed under the Boost
|
|
|
|
|
// Software License, Version 1.0. (See accompanying file
|
|
|
|
|
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
|
//
|
|
|
|
|
// See http://www.boost.org/libs/container for documentation.
|
|
|
|
|
//
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#include "boost/container/set.hpp"
|
|
|
|
|
#include <set>
|
2014-02-06 11:13:22 +01:00
|
|
|
#include "bench_set.hpp"
|
2013-09-26 18:05:25 +00:00
|
|
|
|
|
|
|
|
int main()
|
|
|
|
|
{
|
2014-01-03 13:26:57 +01:00
|
|
|
using namespace boost::container;
|
2014-01-19 18:35:40 +01:00
|
|
|
|
|
|
|
|
fill_range_ints();
|
|
|
|
|
fill_range_strings();
|
|
|
|
|
|
|
|
|
|
//set vs std::set
|
2014-02-06 11:13:22 +01:00
|
|
|
launch_tests< set<int> , std::set<int> >
|
|
|
|
|
("set<int>", "std::set<int>");
|
2014-01-19 18:35:40 +01:00
|
|
|
launch_tests< set<string> , std::set<string> >
|
|
|
|
|
("set<string>", "std::set<string>");
|
2014-02-06 11:13:22 +01:00
|
|
|
|
2014-01-19 18:35:40 +01:00
|
|
|
//set(sizeopt) vs set(!sizeopt)
|
2014-02-06 11:13:22 +01:00
|
|
|
launch_tests< set<int>, set<int, std::less<int>, std::allocator<int>, tree_assoc_options< optimize_size<false> >::type > >
|
|
|
|
|
("set<int>(sizeopt=true)", "set<int>(sizeopt=false)");
|
2014-01-19 18:35:40 +01:00
|
|
|
launch_tests< set<string>, set<string, std::less<string>, std::allocator<string>, tree_assoc_options< optimize_size<false> >::type > >
|
|
|
|
|
("set<string>(sizeopt=true)", "set<string>(sizeopt=false)");
|
2014-02-06 11:13:22 +01:00
|
|
|
|
2013-12-23 10:47:20 +01:00
|
|
|
return 0;
|
2013-09-26 18:05:25 +00:00
|
|
|
}
|