Reserve capacity for at least numBits without reallocation.
Declared in <bdlc_bitarray.h>
void
reserveCapacity(std::size_t numBits);
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.
| Name | Description |
|---|---|
| numBits | minimum capacity, in bits, to reserve |