Return an iterator to the element equivalent to key.
Synopsis
Declared in <bslstl_unorderedset.h>
unordered_set<KEY, HASH, EQUAL, ALLOCATOR>::iterator
find(key_type const& key);
Description
Return an iterator providing modifiable access to the value_type object in this unordered set that is equivalent to the specified key, if such an entry exists, and the past‐the‐end (end) iterator otherwise.
Return Value
iterator to the element, or end() if not found
Parameters
Name |
Description |
key |
key value to look up |
Created with MrDocs