std::multiset<Key,Compare,Allocator>::upper_bound

1,2) Returns an iterator pointing to the first element that is greater than key.

# Declarations

iterator upper_bound( const Key& key );
const_iterator upper_bound( const Key& key ) const;
template< class K >
iterator upper_bound( const K& x );

(since C++14)

template< class K >
const_iterator upper_bound( const K& x ) const;

(since C++14)

# Parameters

# 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.

# Notes

Feature-test macro Value Std Feature __cpp_lib_generic_associative_lookup 201304L (C++14) Heterogeneous comparison lookup in associative containers, for overloads (3,4)

# Example

This section is incompleteReason: no example

# See also