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);
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);
Parameters
Name |
Description |
begin |
beginning of the uninitialized destination range |
numElements |
number of copies of |
value |
value copied into each constructed element |
allocator |
allocator used to supply memory if required |
Created with MrDocs