BloombergLP::bslma::AllocatorUtil::newObject

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>

template<
    class t_TYPE,
    class t_ALLOCATOR>
static
AllocatorUtil_Traits<t_ALLOCATOR, t_TYPE>::pointer
newObject(t_ALLOCATOR const& allocator);