Public Member Functions |
| csArrayCapacityLinear (const size_t x) |
| Construct capacity handler with a given size_t parameter for the Threshold object.
|
size_t | GetCapacity (size_t count) const |
| Compute the capacity for a given number of items.
|
bool | IsCapacityExcessive (size_t capacity, size_t count) const |
| Return "true" if the given capacity is too large for the given count, that is, if GetCapacity() would return a value for count smaller than capacity.
|
|
| csArrayCapacityLinear () |
| Construct capacity handler.
|
| csArrayCapacityLinear (const Threshold &threshold) |
| Construct capacity handler.
|
template<typename Threshold = csArrayThresholdVariable>
class csArrayCapacityLinear< Threshold >
csArray capacity handler.
Different capacity handlers allow to realize different csArray internal growth behaviours, if needed. This default "linear" handler will result in array capacity growth to multiples of Threshold and works well enough in most cases.
Definition at line 312 of file array.h.