File indexing completed on 2025-01-30 09:34:56
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef BOOST_CONTAINER_PMR_FLAT_MAP_HPP
0012 #define BOOST_CONTAINER_PMR_FLAT_MAP_HPP
0013
0014 #if defined (_MSC_VER)
0015 # pragma once
0016 #endif
0017
0018 #include <boost/container/flat_map.hpp>
0019 #include <boost/container/pmr/polymorphic_allocator.hpp>
0020
0021 namespace boost {
0022 namespace container {
0023 namespace pmr {
0024
0025 #if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES)
0026
0027 template <class Key
0028 ,class T
0029 ,class Compare = std::less<Key > >
0030 using flat_map = boost::container::flat_map<Key, T, Compare, polymorphic_allocator<std::pair<Key, T> > >;
0031
0032 template <class Key
0033 ,class T
0034 ,class Compare = std::less<Key> >
0035 using flat_multimap = boost::container::flat_multimap<Key, T, Compare, polymorphic_allocator<std::pair<Key, T> > >;
0036
0037 #endif
0038
0039
0040
0041 template <class Key
0042 ,class T
0043 ,class Compare = std::less<Key> >
0044 struct flat_map_of
0045 {
0046 typedef boost::container::flat_map<Key, T, Compare, polymorphic_allocator<std::pair<Key, T> > > type;
0047 };
0048
0049
0050
0051 template <class Key
0052 ,class T
0053 ,class Compare = std::less<Key> >
0054 struct flat_multimap_of
0055 {
0056 typedef boost::container::flat_multimap<Key, T, Compare, polymorphic_allocator<std::pair<Key, T> > > type;
0057 };
0058
0059 }
0060 }
0061 }
0062
0063 #endif