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 #ifndef BOOST_CONTAINER_PMR_FLAT_MAP_HPP
12 #define BOOST_CONTAINER_PMR_FLAT_MAP_HPP
14 #if defined (_MSC_VER)
18 #include <boost/container/flat_map.hpp>
19 #include <boost/container/pmr/polymorphic_allocator.hpp>
25 #if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES)
29 ,class Compare = std::less<Key>
30 ,class Options = tree_assoc_defaults >
31 using flat_map = boost::container::flat_map<Key, T, Compare, polymorphic_allocator<std::pair<Key, T> > >;
35 ,class Compare = std::less<Key>
36 ,class Options = tree_assoc_defaults >
37 using flat_multimap = boost::container::flat_multimap<Key, T, Compare, polymorphic_allocator<std::pair<Key, T> > >;
41 //! A portable metafunction to obtain a flat_map
42 //! that uses a polymorphic allocator
45 ,class Compare = std::less<Key>
46 ,class Options = tree_assoc_defaults >
49 typedef boost::container::flat_map<Key, T, Compare, polymorphic_allocator<std::pair<Key, T> > > type;
52 //! A portable metafunction to obtain a flat_multimap
53 //! that uses a polymorphic allocator
56 ,class Compare = std::less<Key>
57 ,class Options = tree_assoc_defaults >
58 struct flat_multimap_of
60 typedef boost::container::flat_multimap<Key, T, Compare, polymorphic_allocator<std::pair<Key, T> > > type;
64 } //namespace container {
67 #endif //BOOST_CONTAINER_PMR_FLAT_MAP_HPP