std::map::get_allocator - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::map::get_allocator

From cppreference.com
< cpp‎ | container‎ | map

[edit template]

allocator_type get_allocator() const; |  |

Returns the allocator associated with the container.

### [edit] Parameters

(none)

### [edit] Return value

The associated allocator.

### [edit] Complexity

Constant.

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/container/map/get_allocator&oldid=50560"