System.Generics.Collections.TList.TrimExcess

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

procedure TrimExcess; inline;

C++

void __fastcall TrimExcess(void);

Properties

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

Description

Set list capacity to number of list elements.

TrimExcess sets Capacity to Count, getting rid of all excess capacity in the list.

See Also

Code Examples