[#BloombergLP-bdlc-Queue-reserveCapacity] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/Queue.adoc[Queue]::reserveCapacity :relfileprefix: ../../../ :mrdocs: Reserve capacity for at least the specified `numElements` values. == Synopsis Declared in `<bdlc_queue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void reserveCapacity(int numElements); ---- == Description Reserve sufficient internal capacity to accommodate up to the specified `numElements` values without subsequent reallocation. Note that if `numElements <= length()`, this operation has no effect. == Parameters [cols="1,4"] |=== | Name| Description | *numElements* | minimum capacity to reserve |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#