Mission Base

Program Base Library Functions

int pblListTrimToSize

( PblList* list )

Trims the capacity of this list instance to be the list's current size.

Documentation

Trims the capacity of this list instance to be the list's current size.

For linked list this call returns the list's size.

If the list is an array list and if the capacity is actually decreased, this method has a time complexity of O(N), with N being the number of elements in the list.

In all other cases this method has a time complexity of O(1).

Parameters:
list - The list to use
Returns:
int rc >= 0: The capacity of this list instance.
int rc < 0: An error, see pbl_errno:
PBL_ERROR_OUT_OF_MEMORY - Out of memory.

Alphabetic index



This page was generated with the help of DOC++.