find

Syntax:

    #include <set>
    iterator find( const key_type& key );
    const_iterator find( const key_type& key ) const;

The find() function returns an iterator to key, or an iterator to the end of the set if key is not found.

find() runs in logarithmic time.