[#BloombergLP-bslstl-BidirectionalNodePool-reserveNodes]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/BidirectionalNodePool.adoc[BidirectionalNodePool]::reserveNodes
:relfileprefix: ../../../
:mrdocs:

Reserve memory for at least the specified `numNodes`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
reserveNodes(xref:BloombergLP/bslstl/BidirectionalNodePool/size_type.adoc[size&lowbar;type] numNodes);
----

== Description

Add to this pool sufficient memory to satisfy memory requests for at least the specified `numNodes` before the pool replenishes&period; The additional memory is added irrespective of the amount of free memory when called&period; The behavior is undefined unless `0 &lt; numNodes`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *numNodes*
| minimum number of nodes this pool should be able to satisfy before replenishing
|===


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