bench_set_alloc_v2.cpp 942 B

1234567891011121314151617181920212223242526272829
  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. #include "bench_set.hpp"
  11. #include <boost/container/set.hpp>
  12. #include <boost/container/allocator.hpp>
  13. int main()
  14. {
  15. using namespace boost::container;
  16. fill_range_ints();
  17. fill_range_strings();
  18. //set<..., version_2> vs. set
  19. launch_tests< set<int, std::less<int>, allocator<int> >, set<int> >
  20. ("set<int, ..., allocator<int>", "set<int>");
  21. launch_tests< set<string, std::less<string>, allocator<string> >, set<string> >
  22. ("set<string, ..., allocator<string>", "set<string>");
  23. return 0;
  24. }