[#BloombergLP-bslma-AllocatorUtil-newObject-08] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/AllocatorUtil.adoc[AllocatorUtil]::newObject :relfileprefix: ../../../ :mrdocs: `newObject` overloads == Synopses Declared in `<bslma_allocatorutil.h>` Allocate and default‐construct a `t_TYPE` object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class t_TYPE, class t_ALLOCATOR> static AllocatorUtil_Traits<t_ALLOCATOR, t_TYPE>::pointer xref:BloombergLP/bslma/AllocatorUtil/newObject-09.adoc[newObject](t_ALLOCATOR const& allocator); ---- [.small]#xref:BloombergLP/bslma/AllocatorUtil/newObject-09.adoc[_» more..._]# Allocate and construct a `t_TYPE` object from the given arguments. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class t_TYPE, class t_ALLOCATOR, class t_ARG1, class... t_ARGS> static AllocatorUtil_Traits<t_ALLOCATOR, t_TYPE>::pointer xref:BloombergLP/bslma/AllocatorUtil/newObject-07.adoc[newObject]( t_ALLOCATOR const& allocator, t_ARG1&& argument1, t_ARGS&&... arguments); ---- [.small]#xref:BloombergLP/bslma/AllocatorUtil/newObject-07.adoc[_» more..._]# == Return Value * pointer to the newly allocated and default‐constructed `t_TYPE` object * pointer to the newly allocated and constructed `t_TYPE` object == Parameters [cols="1,4"] |=== | Name| Description | *allocator* | allocator from which to allocate and possibly pass to the constructor | *argument1* | first constructor argument | *arguments* | remaining constructor arguments |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#