Append value‐initialized elements to the back of a deque.
Synopsis
Declared in <bslalg_dequeprimitives.h>
template<class ALLOCATOR>
static
void
valueInititalizeN(
Iterator* toEnd,
Iterator fromEnd,
size_type numElements,
ALLOCATOR allocator);
Description
Append the specified numElements value‐initialized objects to the deque ending at the specified fromEnd iterator, passing the specified allocator through to the new elements, and load into the specified toEnd an iterator pointing to the end of the data after appending (i.e., fromEnd + numElements). The behavior is undefined unless fromEnd + numElements is a valid iterator (i.e., the block pointer array holds enough room after the fromEnd position to insert numElements).
Parameters
Name |
Description |
toEnd |
loads the end iterator after appending |
fromEnd |
current end of the deque |
numElements |
number of value‐initialized elements to append |
allocator |
allocator passed to element constructors |
Created with MrDocs