Mission Base

Program Base Library Functions

int pblSetRemoveAll

( PblSet* set, void* collection )

Removes from this set all of its elements that are contained in the specified collection.

Documentation

Removes from this set all of its elements that are contained in the specified collection.

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

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

Parameters:
set - The set to use
collection - The collection whose elements are to be removed from this set.
Returns:
int rc > 0: If this set changed as a result of the call.
int rc == 0: This set did not change.
int rc < 0: An error, see pbl_errno:
PBL_ERROR_PARAM_COLLECTION - The collection cannot be iterated.
PBL_ERROR_CONCURRENT_MODIFICATION - The collection was modified concurrently.

Alphabetic index



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