- Derived from
- Extended by
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
Ensures that the internal storage capacity has a minimum size.
Using this method can reduce the number of times the internal storage needs to grow.
Public / Attributes
Returns the number of times the internal storage has grown.
To reduce the grow count, use a bigger initial capacity or CapacityEnsure.