System.Generics.Collections.TOrderedDictionary.TrimExcess
Delphi
procedure TrimExcess;
C++
HIDESBASE void __fastcall TrimExcess();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Generics.Collections.pas System.Generics.Collections.hpp |
System.Generics.Collections | TOrderedDictionary |
Description
Reduce capacity to current number of entries.
System.Generics.Collections.TOrderedDictionary.TrimExcess inherits from System.Generics.Collections.TDictionary.TrimExcess. All content below this line refers to System.Generics.Collections.TDictionary.TrimExcess.
Reduce capacity to current number of entries.
TrimExcess changes the capacity to the number of dictionary entries, held in Count.
This method rehashes the internal hash table to save space. This is only useful after a lot of items have been deleted from the dictionary.
See Also
Code Examples