pmr_flat_set_test.cpp 986 B

1234567891011121314151617181920212223242526
  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // (C) Copyright Ion Gaztanaga 2015-2015. 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 <boost/container/pmr/flat_set.hpp>
  11. #include <boost/static_assert.hpp>
  12. #include <boost/container/detail/type_traits.hpp>
  13. int main()
  14. {
  15. using namespace boost::container;
  16. using boost::container::dtl::is_same;
  17. typedef flat_set<int, std::less<int>, pmr::polymorphic_allocator<int> > intcontainer_t;
  18. BOOST_STATIC_ASSERT(( is_same<intcontainer_t, pmr::flat_set_of<int>::type >::value ));
  19. #if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES)
  20. BOOST_STATIC_ASSERT(( is_same<intcontainer_t, pmr::flat_set<int> >::value ));
  21. #endif
  22. return 0;
  23. }