[#BloombergLP-bslma-AllocatorUtil-newObject-09]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/AllocatorUtil.adoc[AllocatorUtil]::newObject
:relfileprefix: ../../../
:mrdocs:

Return an object of (template parameter) `t&lowbar;TYPE` allocated from the specified `allocator` and constructed with no arguments except that, for scoped allocator types such as `bsl&colon;&colon;allocator` and `bsl&colon;&colon;polymorphic&lowbar;allocator`, `allocator` may be passed to the `t&lowbar;TYPE` constructor (i&period;e&period;, if `t&lowbar;TYPE` is AA)&period;

== Synopsis

Declared in `&lt;bslma&lowbar;allocatorutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class t&lowbar;TYPE,
    class t&lowbar;ALLOCATOR&gt;
static
AllocatorUtil&lowbar;Traits&lt;t&lowbar;ALLOCATOR, t&lowbar;TYPE&gt;::pointer
newObject(t&lowbar;ALLOCATOR const& allocator);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
