Reserve capacity for at least the specified numElements values.
Synopsis
Declared in <bdlc_queue.h>
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
Name |
Description |
numElements |
minimum capacity to reserve |
Created with MrDocs