cpp/string/basic string/get allocator

Returns the allocator associated with the string.

Parameters
(none)

Return value
The associated allocator.

Complexity
Constant.