Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::ranges::zip_transform_view<F,Views...>::iterator

      From cppreference.com
      <cpp‎ |ranges‎ |zip transform view
       
       
      Ranges library
      Range adaptors
       
      std::ranges::zip_transform_view
      Member functions
      Deduction guides
      Iterator
      Member functions
      Non-member functions
      Sentinel
      Member functions
      Non-member functions
       
      template<bool Const>
      class/*iterator*/;
      (since C++23)
      (exposition only*)

      The iterator type of a possibly const-qualifiedzip_transform_view, returned byzip_transform_view::begin and in certain cases byzip_transform_view::end.

      The type/*iterator*/<true> or/*iterator*/<false> treats the underlying views as const-qualified or non-const-qualified respectively.

      Contents

      [edit]Member types

      Member type Definition
      Parent(private)zip_transform_view ifConst isfalse,const zip_transform_view otherwise.
      (exposition-only member type*)
      Base(private)InnerView ifConst isfalse,const InnerView otherwise.
      (exposition-only member type*)
      iterator_category
      (conditionally present)

      Let/*maybe-const*/<Const, F>& denoteconst F& ifConst istrue,F& otherwise.
      Let/*maybe-const*/<Const, Views> denoteconst Views ifConst istrue,Views otherwise.

      Let/*POT*/ denote the pack of typesstd::iterator_traits<std::iterator_t<
         /*maybe-const*/<Const, Views>>>::iterator_category...

      If/*Base*/ modelsforward_range, theniterator_category denotes:

      is not a reference.
      • Otherwise,
      (std::derived_from</*POT*/,std::random_access_iterator_tag>&& ...) istrue.
      (std::derived_from</*POT*/,std::bidirectional_iterator_tag>&& ...) istrue.
      (std::derived_from</*POT*/,std::forward_iterator_tag>&& ...) istrue.

      Not present if/*Base*/ does not modelforward_range.

      iterator_concept/*ziperator*/<Const>::iterator_concept
      value_type

      Let/*RREF*/ beranges::range_reference_t<Views>...,
      and/*CRREF*/ beranges::range_reference_t<const Views>.... Then:

      difference_typerange::range_difference_t</*Base*/>

      [edit]Data members

      Member object Definition
      parent_(private) A pointerParent* to the parent object
      (exposition-only member object*)
      inner_(private) An iterator of typeziperator<Const>.
      (exposition-only member type*)

      [edit]Member functions

      constructs an iterator
      (public member function)
      obtains the result of applying the invocable object to the underlying pointed-to elements
      (public member function)
      obtains the result of applying the invocable object to the underlying elements at given offset
      (public member function)
      advances or decrements the underlying iterator
      (public member function)[edit]

      [edit]Non-member functions

      compares the underlying iterators
      (function)
      performs iterator arithmetic on underlying iterators
      (function)

      [edit]Example

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

      [8]ページ先頭

      ©2009-2025 Movatter.jp