BloombergLP::bdlc::Queue::reserveCapacity

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

NameDescription
numElementsminimum capacity to reserve