[#bsl-allocator-014-allocate_object] = xref:bsl.adoc[bsl]::xref:bsl/allocator-014.adoc[allocator<unsigned long long>]::allocate_object :relfileprefix: ../../ :mrdocs: == Synopsis Declared in `<bits/memory_resource.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename _Up> [[nodiscard]] _Up* allocate_object(size_t __n = 1); ---- == 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]#