Reserve minimal capacity for the specified numElements values.
Synopsis
Declared in <bdlc_queue.h>
void
reserveCapacityRaw(int numElements);
Description
Reserve sufficient and minimal internal capacity to accommodate up to the specified numElements values without subsequent reallocation. Beware, however, that repeated calls to this function may invalidate bounds on runtime complexity otherwise guaranteed by this container. Note that if numElements <= length(), this operation has no effect.
Parameters
Name |
Description |
numElements |
minimum capacity to reserve |
Created with MrDocs