|
map::get_allocatorpublic member function
allocator_type get_allocator() const; Get allocator Returns the allocator object used to constuct the container.ParametersnoneReturn ValueThe allocator.Member type allocator_type is defined to the same as the fourth template parameter used to instantitate this specific map class (its Allocator type). Example
The example shows an elaborate way to allocate memory for an array of pairs using the same allocator used by the container. A possible output is:
ComplexityConstant.
|