upper_bound overloads

Synopses

Declared in <bslstl_multimap.h>

Return an iterator to the first element with key greater than key.

Return a const iterator to the first element with key greater than key.

const_iterator
upper_bound(key_type const& key) const;

Return an iterator to the first element with key greater than key.

template<class LOOKUP_KEY>
iterator
upper_bound(LOOKUP_KEY const& key)
requires BloombergLP::bslmf::IsTransparentPredicate<COMPARATOR,
                                                   LOOKUP_KEY>::value;

Return a const iterator to the first element with key greater than key.

template<class LOOKUP_KEY>
const_iterator
upper_bound(LOOKUP_KEY const& key) const
requires BloombergLP::bslmf::IsTransparentPredicate<COMPARATOR,
                                                   LOOKUP_KEY>::value;

Return Value

  • iterator to the upper bound, or end()

  • const iterator to the upper bound, or end()

Parameters

Name

Description

key

key value to look up

Created with MrDocs