Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::flat_multimap<Key,T,Compare,KeyContainer,MappedContainer>::upper_bound

      From cppreference.com
      <cpp‎ |container‎ |flat multimap

      [edit template]
       
       
       
      std::flat_multimap
      Member types
      Member functions
      Non-member functions
      Helper classes
      Tags
      Deduction guides
       
      iterator upper_bound(const Key& key);
      (1)(since C++23)
      (constexpr since C++26)
      const_iterator upper_bound(const Key& key)const;
      (2)(since C++23)
      (constexpr since C++26)
      template<class K>
      iterator upper_bound(const K& x);
      (3)(since C++23)
      (constexpr since C++26)
      template<class K>
      const_iterator upper_bound(const K& x)const;
      (4)(since C++23)
      (constexpr since C++26)
      1,2) Returns an iterator pointing to the first element that is greater thankey.
      3,4) Returns an iterator pointing to the first element that compares greater thanx.
      This overload participates in overload resolution only ifCompare istransparent. It allows calling this function without constructing an instance ofKey.

      Contents

      [edit]Parameters

      key - key value to compare the elements to
      x - alternative value that can be compared toKey

      [edit]Return value

      An iterator pointing to the first element that is greater than the given key, orend() is no such element exists.

      [edit]Complexity

      Logarithmic in the size of the container.

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      returns range of elements matching a specific key
      (public member function)[edit]
      returns an iterator to the first elementnot less than the given key
      (public member function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/container/flat_multimap/upper_bound&oldid=169452"

      [8]ページ先頭

      ©2009-2025 Movatter.jp