Mission Base

Program Base Library Functions

int pblSetAddAll

( PblSet* set, void* collection )

Adds all of the elements in the specified Collection to this set.

Documentation

Adds all of the elements in the specified Collection to this set. NULL elements added are silently ignored.

For hash sets this method has a time complexity of O(M), with M being the size of the collection whose elements are added.

For tree sets this method has a time complexity of O(M * Log N), with M being the size of the collection whose elements are added, and N being the number of elements in the set.

Parameters:
set - The set to use
collection - The collection whose elements are to be added to this set.
Returns:
int rc >= 0: The size of this set instance.
int rc < 0: An error, see pbl_errno:
PBL_ERROR_OUT_OF_MEMORY - Out of memory.
PBL_ERROR_PARAM_COLLECTION - Collection cannot be iterated.
PBL_ERROR_CONCURRENT_MODIFICATION - Collection was modified concurrently.

Alphabetic index



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