Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::ranges::chunk_view<V>::iterator<Const>::iterator

      From cppreference.com
      <cpp‎ |ranges‎ |chunk view‎ |iterator
       
       
      Ranges library
      Range adaptors
       
      std::ranges::chunk_view
      Member functions
      Classes forinput_ranges
      Deduction guides
      outer-iterator
      outer-iterator::value_type
      inner-iterator
       
      /*iterator*/()=default;
      (1)(since C++23)
      constexpr/*iterator*/(/*iterator*/<!Const> i)

          requires
              Const and
             std::convertible_to<ranges::iterator_t<V>,ranges::iterator_t<Base>> and

             std::convertible_to<ranges::sentinel_t<V>,ranges::sentinel_t<Base>>;
      (2)(since C++23)
      private:

      constexpr/*iterator*/( Parent* parent,
                             ranges::iterator_t<Base> current,

                             ranges::range_difference_t<Base> missing=0);
      (3)(exposition only*)

      Construct an iterator.

      1) Default constructor.Value-initializes the underlyingdata members:
      2) Conversion from/*iterator*/<false> to/*iterator*/<true>. Initializes the underlyingdata members:
      • current_ withstd::move(i.current_),
      • end_ withstd::move(i.end_),
      • n_ withi.n_,
      • missing_ withi.missing_.
      3) A private constructor which is used byranges::chunk_view::begin andranges::chunk_view::end. This constructor is not accessible to users. Initializes the underlyingdata members:
      • current_ withcurrent,
      • end_ withranges::end(parent->base_),
      • n_ withparent->n_,
      • missing_ withmissing.

      [edit]Parameters

      i - an/*iterator*/<false>
      parent - a pointer to owningchunk_view
      current - an iterator to the begin of current chunk
      missing - a difference between expected (n_) and actual size of current chunk

      [edit]Example

      This section is incomplete
      Reason: no example
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/chunk_view/iterator/iterator&oldid=156079"

      [8]ページ先頭

      ©2009-2025 Movatter.jp