upper_bound

C/C++ Reference

upper_bound
Syntax:
  #include <set>
  iterator upper_bound( const key_type& key );

The function upper_bound() returns an iterator to the first element in the set with a value greater than key.

Related topics: