Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class template unordered_map_index

boost::interprocess::unordered_map_index

Synopsis

// In header: <boost/interprocess/indexes/unordered_map_index.hpp>

template<typename MapConfig> 
class unordered_map_index : public  {
public:
  // construct/copy/destruct
  (segment_manager_base *);

  // public member functions
   ();
   ();
};

Description

Index type based in unordered_map. Just derives from unordered_map and defines the interface needed by managed memory segments

unordered_map_index public construct/copy/destruct

  1. (segment_manager_base * segment_mngr);

    Constructor. Takes a pointer to the segment manager. Can throw

unordered_map_index public member functions

  1.  ( n);

    This reserves memory to optimize the insertion of n elements in the index

  2.  ();

    This tries to free previously allocate unused memory.


PrevUpHomeNext