![]() |
Home | Libraries | People | FAQ | More |
boost::interprocess::flat_map_index
// In header: <boost/interprocess/indexes/flat_map_index.hpp> template<typename MapConfig> class flat_map_index : public flat_map_index_aux::index_t { public: // public member functions flat_map_index(segment_manager_base *); void reserve(typename segment_manager_base::size_type); void shrink_to_fit(); };
Index type based in flat_map. Just derives from flat_map and defines the interface needed by managed memory segments.
flat_map_index
public member functionsflat_map_index(segment_manager_base * segment_mngr);Constructor. Takes a pointer to the segment manager. Can throw.
void reserve(typename segment_manager_base::size_type n);This reserves memory to optimize the insertion of n elements in the index.
void shrink_to_fit();This frees all unnecessary memory.