Value-initialize elements into an uninitialized array.
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...
| Name | Description |
|---|---|
| begin | beginning of the uninitialized destination range |
| numElements | number of elements to value-initialize |
| allocator | allocator used to supply memory if required |