Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      operator-(std::move_iterator)

      From cppreference.com
      <cpp‎ |iterator‎ |move iterator
       
       
      Iterator library
      Iterator concepts
      Iterator primitives
      Algorithm concepts and utilities
      Indirect callable concepts
      Common algorithm requirements
      (C++20)
      (C++20)
      (C++20)
      Utilities
      (C++20)
      Iterator adaptors
      Range access
      (C++11)(C++14)
      (C++14)(C++14)  
      (C++11)(C++14)
      (C++14)(C++14)  
      (C++17)(C++20)
      (C++17)
      (C++17)
       
       
      Defined in header<iterator>
      template<class Iter1,class Iter2>

      auto operator-(const move_iterator<Iter1>& lhs,
                     const move_iterator<Iter2>& rhs)

         -> decltype(lhs.base()- rhs.base());
      (since C++11)
      (constexpr since C++17)

      Returns the distance between two iterator adaptors.

      Contents

      [edit]Parameters

      lhs, rhs - iterator adaptors to compute the difference of

      [edit]Return value

      lhs.base()- rhs.base()

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      advances or decrements themove_iterator
      (public member function)[edit]
      (C++11)
      advances the iterator
      (function template)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/iterator/move_iterator/operator-&oldid=177516"

      [8]ページ先頭

      ©2009-2025 Movatter.jp