[#bsl-basic_string-0faf-get_allocator] = xref:bsl.adoc[bsl]::xref:bsl/basic_string-0faf.adoc[basic_string]::get_allocator :relfileprefix: ../../ :mrdocs: Return the allocator used by this string to supply memory. == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/basic_string-0faf/allocator_type.adoc[allocator_type] get_allocator() const noexcept; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#