]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/container/test/pmr_flat_map_test.cpp
1 //////////////////////////////////////////////////////////////////////////////
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)
7 // See http://www.boost.org/libs/container for documentation.
9 //////////////////////////////////////////////////////////////////////////////
11 #include <boost/container/pmr/flat_map.hpp>
12 #include <boost/static_assert.hpp>
13 #include <boost/container/detail/type_traits.hpp>
17 using namespace boost::container
;
18 using boost::container::dtl::is_same
;
20 typedef flat_map
<int, float, std::less
<int>, pmr::polymorphic_allocator
<std::pair
<int, float> > > intcontainer_t
;
21 BOOST_STATIC_ASSERT(( is_same
<intcontainer_t
, pmr::flat_map_of
<int, float>::type
>::value
));
22 #if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES)
23 BOOST_STATIC_ASSERT(( is_same
<intcontainer_t
, pmr::flat_map
<int, float> >::value
));