Contents

setCapacityIncrement

Sets the storage increment of the collection.

Declaration

virtual unsigned int setCapacityIncrement(
 unsigned increment) = 0;

Return Value

The new storage increment of the collection, which may be different from the number requested.

Overview

Subclasses must implement this pure virtual member function. Most collection subclasses allocate their storage in multiples of the capacity increment.

Collection subclasses should gracefully handle an increment of zero by applying (and returning) a positive minimum capacity.

Setting the capacity increment does not trigger an immediate adjustment of a collection's storage.

See ensureCapacity for how the capacity increment is used.

See Also

Miscellaneous