TInt | AlignCapacity | ( | TInt | aNewCapacity | ) | [static, inline] |
Aligns the supplied capacity to the nearest growth factor
For performance reasons the growth factor, KDefaultExpandSizeShift, is expressed as an exponent of 2 so shifting can be used to achieve the alignment.
a KDefaultExpandSizeShift value of 4 is equivalent to 16; giving newCapacity = ((newCapacity / 16) + 1) * 16
The new, aligned capacity
TInt aNewCapacity | The size to be aligned |