[#bsl-Deque_BlockCreator-reserveBlockSlots] = xref:bsl.adoc[bsl]::xref:bsl/Deque_BlockCreator.adoc[Deque_BlockCreator]::reserveBlockSlots :relfileprefix: ../../ :mrdocs: Make room for `numNewBlocks` pointers in the blocks array. == Synopsis Declared in `<bslstl_deque.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/Deque_BlockCreator.adoc[Deque_BlockCreator<VALUE_TYPE, ALLOCATOR>::BlockPtr]* reserveBlockSlots( xref:bsl/Deque_BlockCreator.adoc[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 [cols="1,4"] |=== | Name| Description | *numNewBlocks* | number of block‐pointer slots to reserve | *atFront* | `true` to reserve at the front; `false` at the back |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#