Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::ranges::enumerate_view<V>::begin

      From cppreference.com
      <cpp‎ |ranges‎ |enumerate view
       
       
      Ranges library
      Range adaptors
       
      std::ranges::enumerate_view
      Member functions
      enumerate_view::begin
      Deduction guides
      Nested classes
      Iterator
      Sentinel
       
      constexprauto begin() requires(!/*simple-view*/<V>);
      (1)(since C++23)
      constexprauto begin()const requires/*range-with-movable-references*/<const V>;
      (2)(since C++23)

      Returns aniterator to the first element of theenumerate_view.

      Letbase_ denote the underlying view.

      1) Equivalent toreturn/*iterator*/<false>(ranges::begin(base_),0);.
      2) Equivalent toreturn/*iterator*/<true>(ranges::begin(base_),0);.

      Contents

      [edit]Parameters

      (none)

      [edit]Return value

      Iterator to the first element.

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      returns an iterator or a sentinel to the end
      (public member function)[edit]
      returns an iterator to the beginning of a range
      (customization point object)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/enumerate_view/begin&oldid=172631"

      [8]ページ先頭

      ©2009-2025 Movatter.jp