Show: Delphi C++
Display Preferences

System.Generics.Collections.TDictionary.TrimExcess

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure TrimExcess;

C++

void __fastcall TrimExcess();

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Generics.Collections.pas
System.Generics.Collections.hpp
System.Generics.Collections TDictionary

Description

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


Personal tools
In Other Languages
Previous Versions
Assistance