[#bsl-allocator-015-allocate-07d7] = xref:bsl.adoc[bsl]::xref:bsl/allocator-015.adoc[allocator<char>]::allocate :relfileprefix: ../../ :mrdocs: == Synopsis Declared in `<bslma_bslallocator.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] xref:bsl/allocator-015/pointer.adoc[pointer] allocate( xref:bsl/allocator-015/size_type.adoc[size_type] n, void const* hint = 0); ---- == Return Value [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== [.small]#Created with https://www.mrdocs.com[MrDocs]#