Return the number of elements equivalent to key (0 or 1).
Synopsis
Declared in <bslstl_set.h>
size_type
count(key_type const& key) const;
Description
Note that since a set maintains unique keys, the returned value will be either 0 or 1.
Note: implemented inline due to Sun CC compilation error.
Return Value
0 or 1, since keys are unique
Parameters
Name |
Description |
key |
key value to look up |
Created with MrDocs