Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::ranges::enumerate_view<V>::iterator<Const>::operator[]

      From cppreference.com
      <cpp‎ |ranges‎ |enumerate view‎ |iterator
       
       
      Ranges library
      Range adaptors
       
      std::ranges::enumerate_view
      Member functions
      Deduction guides
      Nested classes
      Iterator
      enumerate_view::iterator::operator[]
      Sentinel
       
      constexprauto operator[]( difference_type n)const
          requiresranges::random_access_range<Base>
      (since C++23)

      Returns an element at specified relative location.Equivalent to:return reference-type(pos_ + n, current_[n]);.

      Contents

      [edit]Parameters

      n - position relative to current location

      [edit]Return value

      The element at displacementn relative to the current location.

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      (C++23)
      accesses the element
      (public member function)
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/enumerate_view/iterator/operator_at&oldid=150714"

      [8]ページ先頭

      ©2009-2025 Movatter.jp