Skip to main content

TdxFastList.Add(Pointer) Method

Appends the specified pointer to the ordered pointer list.

Declaration

function Add(AItem: Pointer): Integer;

Parameters

Name Type
AItem Pointer

Returns

Type
Integer

Remarks

Call this function and pass a pointer as the AItem parameter to add the pointer to the end of the list. The Add function:

  • Returns the appended pointer’s index within the list.

  • Increments the Count property value by one.

  • Expands the list’s capacity if the number of stored pointers has reached the maximum list size prior to the function call.

Note

Call the AddRange procedure instead if you need to add multiple pointers from a single source.

See Also