std::flat_map<Key,T,Compare,KeyContainer,MappedContainer>::upper_bound
Min standard notice:
1,2) Returns an iterator pointing to the first element that is greater than key.
# Declarations
iterator upper_bound( const Key& key );
(since C++23)
const_iterator upper_bound( const Key& key ) const;
(since C++23)
template< class K >
iterator upper_bound( const K& x );
(since C++23)
template< class K >
const_iterator upper_bound( const K& x ) const;
(since C++23)
# Parameters
key: key value to compare the elements tox: alternative value that can be compared to Key
# Return value
Iterator pointing to the first element that is greater than key. If no such element is found, past-the-end (see end()) iterator is returned.
# Example
This section is incompleteReason: no example