Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Struct template flat_map_of

boost::container::pmr::flat_map_of

Synopsis

// In header: <boost/container/pmr/flat_map.hpp>

template<typename Key, typename T, typename Compare = std::less<Key>, 
         typename Options = tree_assoc_defaults> 
struct flat_map_of {
  // types
  typedef boost::container::flat_map< Key, T, Compare, polymorphic_allocator< std::pair< Key, T > > > type;
};

Description

A portable metafunction to obtain a flat_map that uses a polymorphic allocator


PrevUpHomeNext