lower_bound [C++ Reference]
Keywords: stl,map,lower_bound
Date: 2009-10-09T05:39:20-0700

[[lower_bound]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- cz
- de
- es
- fr
- it
- jp
- nl
- pl
- ro
- ru
- sk
- tr
- tw

## lower_bound

Syntax:

        #include <map>
        iterator lower_bound( const key_type& key );
        const_iterator lower_bound( const key_type& key ) const;

The lower_bound() function returns an iterator to the first element whose key is not less than the supplied argument key (i.e. greater than or equal to). The comparison is done using the map's comparison object.

lower_bound() runs in logarithmic time.

Related Topics: upper_bound

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •