BloombergLP::bslalg::ArrayPrimitives::defaultConstruct

Value-initialize elements into an uninitialized array.

Synopses

Declared in <bslalg_arrayprimitives.h>

Value-initialize elements into an uninitialized array.

template<class ALLOCATOR>
static
void
defaultConstruct(
    bsl::allocator_traits<ALLOCATOR>::pointer begin,
    size_type numElements,
    ALLOCATOR allocator);
» more...

Value-initialize elements into an uninitialized array.

template<class TARGET_TYPE>
static
void
defaultConstruct(
    TARGET_TYPE* begin,
    size_type numElements,
    bslma::Allocator* allocator);
» more...

Parameters

NameDescription
beginbeginning of the uninitialized destination range
numElementsnumber of elements to value-initialize
allocatorallocator used to supply memory if required