[#bsl-Deque_BlockCreator-reserveBlockSlots]
= xref:bsl.adoc[bsl]::xref:bsl/Deque_BlockCreator.adoc[Deque&lowbar;BlockCreator]::reserveBlockSlots
:relfileprefix: ../../
:mrdocs:

Make room for `numNewBlocks` pointers in the blocks array&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;deque&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/Deque_BlockCreator.adoc[Deque&lowbar;BlockCreator&lt;VALUE&lowbar;TYPE, ALLOCATOR&gt;::BlockPtr]*
reserveBlockSlots(
    xref:bsl/Deque_BlockCreator.adoc[size&lowbar;type] numNewBlocks,
    bool atFront);
----

== Description

Make room for the specified `numNewBlocks` pointers in the blocks array&period; If the specified `atFront` is `true`, then make room at the front of the array, else make room at the back of the array&period; Return a pointer to the insertion point, i&period;e&period;, the point where new blocks can be stored into the array, working backwards if `atFront` is `true`, or working forwards if `atFront` is `false`&period; This method invalidates all iterators and updates `d&lowbar;deque&lowbar;p&hyphen;&gt;d&lowbar;start` and `d&lowbar;deque&lowbar;p&hyphen;&gt;d&lowbar;finish`&period;

== Return Value

pointer to the insertion point for new block pointers

== Parameters

[cols="1,4"]
|===
| Name| Description
| *numNewBlocks*
| number of block&hyphen;pointer slots to reserve
| *atFront*
| `true` to reserve at the front&semi; `false` at the back
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
