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_MAP_HPP
12 #define BOOST_CONTAINER_PMR_MAP_HPP
14 #if defined (_MSC_VER)
18 #include <boost/container/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 map = boost::container::map<Key, T, Compare, polymorphic_allocator<std::pair<const Key, T> >, Options>;
35 ,class Compare = std::less<Key>
36 ,class Options = tree_assoc_defaults >
37 using multimap = boost::container::multimap<Key, T, Compare, polymorphic_allocator<std::pair<const Key, T> >, Options>;
41 //! A portable metafunction to obtain a map
42 //! that uses a polymorphic allocator
45 ,class Compare = std::less<Key>
46 ,class Options = tree_assoc_defaults >
49 typedef boost::container::map<Key, T, Compare, polymorphic_allocator<std::pair<const Key, T> >, Options> type;
52 //! A portable metafunction to obtain a multimap
53 //! that uses a polymorphic allocator
56 ,class Compare = std::less<Key>
57 ,class Options = tree_assoc_defaults >
60 typedef boost::container::multimap<Key, T, Compare, polymorphic_allocator<std::pair<const Key, T> >, Options> type;
64 } //namespace container {
67 #endif //BOOST_CONTAINER_PMR_MAP_HPP