[#bsl-allocator-09b-allocate_object] = xref:bsl.adoc[bsl]::xref:bsl/allocator-09b.adoc[allocator<pair<int const, pair<shared_ptr<Statistics>, shared_ptr<Collector<OsLinux>>>>>]::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]#