ICapacityVector
Description
- Derived from
- Extended by
-
ArrayDeque sealed
ArrayVector sealed
Base interface for vector-like collections that have an internal storage capacity that will grow as required.
The methods and properties of this interface may be used to achieve optimal capacity values for collections, to avoid unnecessary growing of the internal storage or wasted memory because of unnecessarily big storage capacities. The result of their use should be validated with a memory profiler tool, to avoid potential harmful optimization attempts.
Public / Methods
Public / Attributes
CapacityGrow
Returns the number of times the internal storage has grown.
To reduce the grow count, use a bigger initial capacity or CapacityEnsure.