[#bsl-allocator-0e1-allocate-05] = xref:bsl.adoc[bsl]::xref:bsl/allocator-0e1.adoc[allocator<unsigned short>]::allocate :relfileprefix: ../../ :mrdocs: == Synopsis Declared in `<bslma_bslallocator.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] xref:bsl/allocator-0e1/pointer.adoc[pointer] allocate( xref:bsl/allocator-0e1/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]#