Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      operator+,-(ranges::zip_transform_view::iterator)

      From cppreference.com
      <cpp‎ |ranges‎ |zip transform view‎ |iterator
       
       
      Ranges library
      Range adaptors
       
      std::ranges::zip_transform_view
      Member functions
      Deduction guides
      Iterator
      Member functions
      Non-member functions
      operator+(zip_transform_view::iterator)
      operator-(zip_transform_view::iterator)
      Sentinel
      Member functions
      Non-member functions
       
      friendconstexpr/*iterator*/ operator+(const/*iterator*/& i, difference_type n)
          requiresranges::random_access_range<Base>;
      (1)(since C++23)
      friendconstexpr/*iterator*/ operator+( difference_type n,const/*iterator*/& i)
          requiresranges::random_access_range<Base>;
      (2)(since C++23)
      friendconstexpr/*iterator*/ operator-(const/*iterator*/& i, difference_type n)
          requiresranges::random_access_range<Base>;
      (3)(since C++23)
      friendconstexpr difference_type operator-(const/*iterator*/& i,

                                                 const/*iterator*/& j)

          requiresstd::sized_sentinel_for</*ziperator*/<Const>,/*ziperator*/<Const>>;
      (4)(since C++23)

      Letinner_ denote the underlying iterator.

      1,2) Returns the iteratori incremented byn. Equivalent to:return/*iterator*/(*i.parent_, i.inner_+ n);.
      3) Returns the iteratori decremented byn. Equivalent to:return/*iterator*/(*i.parent_, i.inner_- n);.
      4) Calculates thedistance betweeni andj. Equivalent toreturn i.inner_- j.inner_;.

      This function is not visible to ordinaryunqualified orqualified lookup, and can only be found byargument-dependent lookup whenzip_transform_view::iterator<Const> is an associated class of the arguments.

      Contents

      [edit]Parameters

      i, j - the iterators
      n - position relative to current location

      [edit]Return value

      1,2)/*iterator*/{ inner_+ n}
      3)/*iterator*/{ inner_- n}
      4)i.inner_- j.inner_

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      advances or decrements the underlying iterator
      (public member function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/zip_transform_view/iterator/operator_arith2&oldid=172609"

      [8]ページ先頭

      ©2009-2025 Movatter.jp