Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::flat_multimap<Key,T,Compare,KeyContainer,MappedContainer>::lower_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 lower_bound(const Key& key);
      (1)(since C++23)
      (constexpr since C++26)
      const_iterator lower_bound(const Key& key)const;
      (2)(since C++23)
      (constexpr since C++26)
      template<class K>
      iterator lower_bound(const K& x);
      (3)(since C++23)
      (constexpr since C++26)
      template<class K>
      const_iterator lower_bound(const K& x)const;
      (4)(since C++23)
      (constexpr since C++26)
      1,2) Returns an iterator pointing to the first element that isnot less thankey.
      3,4) Returns an iterator pointing to the first element that comparesnot less 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 not less 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 elementgreater than the given key
      (public member function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/container/flat_multimap/lower_bound&oldid=169447"

      [8]ページ先頭

      ©2009-2025 Movatter.jp