Return an iterator to the element equivalent to key, or end.
Declared in <bslstl_set.h>
template<class LOOKUP_KEY>
iterator
find(LOOKUP_KEY const& key)
requires BloombergLP::bslmf::IsTransparentPredicate<COMPARATOR,
LOOKUP_KEY>::value;
Return an iterator providing modifiable access to the value_type object in this set that is equivalent to the specified key, if such an entry exists, and the past-the-end (end) iterator otherwise.
Note: implemented inline due to Sun CC compilation error.
iterator to the matching element, or end()
| Name | Description |
|---|---|
| key | key value to look up |