[#bsl-allocator-0c2-new_object]
= xref:bsl.adoc[bsl]::xref:bsl/allocator-0c2.adoc[allocator&lt;int&gt;]::new&lowbar;object
:relfileprefix: ../../
:mrdocs:

== Synopsis

Declared in `&lt;bits&sol;memory&lowbar;resource&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename &lowbar;Up,
    typename&period;&period;&period; &lowbar;CtorArgs&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
&lowbar;Up*
new&lowbar;object(&lowbar;CtorArgs&&&period;&period;&period; &lowbar;&lowbar;ctor&lowbar;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]#
