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);
Value‐initialize elements into an uninitialized array.
template<class TARGET_TYPE>
static
void
defaultConstruct(
TARGET_TYPE* begin,
size_type numElements,
bslma::Allocator* allocator);
Parameters
Name |
Description |
begin |
beginning of the uninitialized destination range |
numElements |
number of elements to value‐initialize |
allocator |
allocator used to supply memory if required |
Created with MrDocs