Mission Base

Program Base Library Functions

int pblCollectionContains

( PblCollection* collection,
  void* element )

Returns true if this collection contains the specified element.

Documentation

Returns true if this collection contains the specified element.

For lists this method has a time complexity of O(N), with N being the size of the list.

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

For hash sets this method has a complexity of O(1).

Parameters:
collection - The collection to use
element - Element to look for
Returns:
int rc != 0: The specified element is present.
int rc == 0: The specified element is not present.

Alphabetic index



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