Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::ranges::chunk_view<V>::begin

      From cppreference.com
      <cpp‎ |ranges‎ |chunk view
       
       
      Ranges library
      Range adaptors
       
      std::ranges::chunk_view
      Member functions
      chunk_view::begin
      Classes forinput_ranges
      Deduction guides
      outer-iterator
      outer-iterator::value_type
      inner-iterator
       
      V models onlyinput_range
      constexpr/*outer_iterator*/ begin();
      (1)(since C++23)
      constexprauto begin() requires(!/*simple_view*/<V>);
      (2)(since C++23)
      constexprauto begin()const requiresranges::forward_range<const V>;
      (3)(since C++23)

      Returns aniterator to the first element of thechunk_view.

      1) Available only ifV modelsinput_range. Equivalent to

      current_ =ranges::begin(base_);
      remainder_ = n_;
      return outer_iterator(*this);

      2) Available ifV modelsforward_range. Equivalent toreturn iterator<false>(this,ranges::begin(base_));.
      3) Available ifV modelsforward_range. Equivalent toreturn iterator<true>(this,ranges::begin(base_));.

      [edit]Return value

      An iterator to the first element of thechunk_view, as described above.

      [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/chunk_view/begin&oldid=181234"

      [8]ページ先頭

      ©2009-2025 Movatter.jp