Fill an uninitialized array with copies of a value.
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...
| Name | Description |
|---|---|
| begin | beginning of the uninitialized destination range |
| numElements | number of copies of value to construct |
| value | value copied into each constructed element |
| allocator | allocator used to supply memory if required |