[#BloombergLP-bdlc-BitArray-reserveCapacity] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/BitArray.adoc[BitArray]::reserveCapacity :relfileprefix: ../../../ :mrdocs: Reserve sufficient internal capacity to accommodate a length of at least the specified `numBits` without reallocation. If an exception is thrown during this reallocation attempt (i.e., by the memory allocator indicated at construction) the value of this array is guaranteed to be unchanged. == Synopsis Declared in `<bdlc_bitarray.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void reserveCapacity(std::size_t numBits); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#