[#nlohmann-basic_json-00-get_allocator] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-00.adoc[basic_json]::get_allocator :relfileprefix: ../../ :mrdocs: returns the allocator associated with the container == Synopsis Declared in `<nlohmann/json.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:nlohmann/basic_json-00/allocator_type.adoc[allocator_type] get_allocator(); ---- == Return Value the allocator type [.small]#Created with https://www.mrdocs.com[MrDocs]#