System.Generics.Collections.TList.Pack

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Pack; overload;
procedure Pack(const IsEmpty: TEmptyFunc); overload;

C++

void __fastcall Pack()/* overload */;
void __fastcall Pack(const _di_TEmptyFunc IsEmpty)/* overload */;

Properties

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

Description

Removes empty items from the list.

This procedure removes from the list any item of class T with a value that is the default value of T.

For more flexibility, you can specify a function, IsEmpty, that determines whether or not an item must be removed from the list.

See Also