##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::basic_string::get_allocator

From cppreference.com
< cpp‎ | string‎ | basic string

allocator_type get_allocator() const; |  |

Returns the allocator associated with the string.

### [edit] Parameters

(none)

### [edit] Return value

the associated allocator

### [edit] Complexity

Constant

### [edit] See also

| This section is incomplete

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/string/basic_string/get_allocator&oldid=41657"
Category:

- Todo without reason