System.Contnrs.TBucketList.BucketFor
Delphi
function BucketFor(AItem: Pointer): Integer; override;
C++
virtual int __fastcall BucketFor(void * AItem);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | System.Contnrs.pas System.Contnrs.hpp |
System.Contnrs | TBucketList |
Description
Returns the index of the bucket in which a specified item belongs.
TBucketList uses BucketFor internally to determine the bucket into which an arbitrary item belongs.
AItem is the identifier of the item for which you want to find a bucket.
BucketFor returns the index of the bucket in the Buckets property array.