System.Contnrs.TCustomBucketList.Add

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Add(AItem, AData: Pointer): Pointer;

C++

void * __fastcall Add(void * AItem, void * AData);

Properties

Type Visibility Source Unit Parent
function public
System.Contnrs.pas
System.Contnrs.hpp
System.Contnrs TCustomBucketList

Description

Inserts an item and its associated data into the bucket list.

Call Add to add an item and its associated data into the bucket list. Add locates the bucket into which the specified item belongs. If the item is already in the bucket, Add raises an EListError exception. Otherwise, it adds the item to the correct bucket and returns AData.

See Also