std::basic_string::get_allocator - cppreference.com

##### 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

allocator | the default allocator (class template) [edit]
allocator_traits (C++11) | provides information about allocator types (class template) [edit]
uses_allocator (C++11) | checks if the specified type supports uses-allocator construction (class template) [edit]

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