set::find

const_iterator find(const Key& key) const;

The member function returns an iterator that designates the earliest element in the controlled sequence whose sort key equals key. If no such element exists, the iterator equals end().

See the related sample program.