BloombergLP::bslalg::ArrayPrimitives::uninitializedFillN

Fill an uninitialized array with copies of a value.

Synopses

Declared in <bslalg_arrayprimitives.h>

Fill an uninitialized array with copies of a value.

template<class ALLOCATOR>
static
void
uninitializedFillN(
    bsl::allocator_traits<ALLOCATOR>::pointer begin,
    size_type numElements,
    bsl::allocator_traits<ALLOCATOR>::value_type const& value,
    ALLOCATOR allocator);
» more...

Fill an uninitialized array with copies of a value.

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

Parameters

NameDescription
beginbeginning of the uninitialized destination range
numElementsnumber of copies of value to construct
valuevalue copied into each constructed element
allocatorallocator used to supply memory if required