[#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_TYPE` allocated from the specified `allocator` and constructed with no arguments except that, for scoped allocator types such as `bsl::allocator` and `bsl::polymorphic_allocator`, `allocator` may be passed to the `t_TYPE` constructor (i.e., if `t_TYPE` is AA). == Synopsis Declared in `<bslma_allocatorutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class t_TYPE, class t_ALLOCATOR> static AllocatorUtil_Traits<t_ALLOCATOR, t_TYPE>::pointer newObject(t_ALLOCATOR const& allocator); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#