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