Make room for numNewBlocks pointers in the blocks array.
Synopsis
Declared in <bslstl_deque.h>
Deque_BlockCreator<VALUE_TYPE, ALLOCATOR>::BlockPtr*
reserveBlockSlots(
size_type numNewBlocks,
bool atFront);
Description
Make room for the specified numNewBlocks pointers in the blocks array. If the specified atFront is true, then make room at the front of the array, else make room at the back of the array. Return a pointer to the insertion point, i.e., the point where new blocks can be stored into the array, working backwards if atFront is true, or working forwards if atFront is false. This method invalidates all iterators and updates d_deque_p‐>d_start and d_deque_p‐>d_finish.
Return Value
pointer to the insertion point for new block pointers
Parameters
Name |
Description |
numNewBlocks |
number of block‐pointer slots to reserve |
atFront |
|
Created with MrDocs