bsl::multiset::upper_bound

upper_bound overloads

Synopses

Declared in <bslstl_multiset.h>

Return an iterator to the first element greater than key.

iterator
upper_bound(key_type const& key);
» more...

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

const_iterator
upper_bound(key_type const& key) const;
» more...

Return an iterator to the first element greater than key.

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

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

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

Return Value

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

Parameters

NameDescription
keykey value to look up