[#BloombergLP-bdlat_ArrayFunctions-reserve]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlat_ArrayFunctions.adoc[bdlat&lowbar;ArrayFunctions]::reserve
:relfileprefix: ../../
:mrdocs:

If successful, make the capacity of the specified modifiable `array` at least the specified `numElements` and return zero&period; If unsuccessful or unsupported, return a non&hyphen;zero value&period; This method has no effect, and returns zero, if the current capacity meets or exceeds the required capacity&period; The behavior is undefined unless `0 &lt;&equals; numElements`&period;

== Synopsis

Declared in `&lt;bdlat&lowbar;arrayfunctions&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
int
reserve(
    TYPE* array,
    int numElements);
----


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