Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::ranges::zip_transform_view<F,Views...>::iterator<Const>::operator++,--,+=,-=

      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
      zip_transform_view::iterator::operator++
      zip_transform_view::iterator::operator++(int)
      zip_transform_view::iterator::operator--
      zip_transform_view::iterator::operator--(int)
      zip_transform_view::iterator::operator+=
      zip_transform_view::iterator::operator-=
      Non-member functions
      Sentinel
      Member functions
      Non-member functions
       
      constexpr/*iterator*/& operator++();
      (1)(since C++23)
      constexprvoid operator++(int);
      (2)(since C++23)
      constexpr/*iterator*/ operator++(int)
          requiresranges::forward_range<Base>;
      (3)(since C++23)
      constexpr/*iterator*/& operator--()
          requiresranges::bidirectional_range<Base>;
      (4)(since C++23)
      constexpr/*iterator*/ operator--(int)
          requiresranges::bidirectional_range<Base>;
      (5)(since C++23)
      constexpr/*iterator*/& operator+=( difference_type n)
          requiresranges::random_access_range<Base>;
      (6)(since C++23)
      constexpr/*iterator*/& operator-=( difference_type n)
          requiresranges::random_access_range<Base>;
      (7)(since C++23)

      Increments or decrements theiterator.

      Letinner_ be the underlying iterator andBase be the exposition-only member type.

      Equivalent to:

      1)++inner_;return*this;
      2)++*this;
      3)auto tmp=*this;++*this;return tmp;
      4)--inner_;return*this;
      5)auto tmp=*this;--*this;return tmp;
      6)inner_+= n;return*this;
      7)inner_-= n;return*this;

      Contents

      [edit]Parameters

      n - position relative to current location

      [edit]Return value

      1,4,6,7)*this
      2) (none)
      3,5) a copy of*this that was made before the change

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/zip_transform_view/iterator/operator_arith&oldid=151310"

      [8]ページ先頭

      ©2009-2025 Movatter.jp