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