Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      operator==(std::move_iterator<Iter>, std::move_sentinel)

      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)
       
       
      template<std::sentinel_for<Iter> S>

      friendconstexprbool

          operator==(const move_iterator& i,conststd::move_sentinel<S>& s);
      (since C++20)

      Compares amove_iterator and amove_sentinel.

      This overload participates in overload resolution only ifi.base()== s.base() is well-formed and convertible tobool.

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

      The!= operator issynthesized fromoperator==.

      Contents

      [edit]Parameters

      i - the move iterator to compare
      s - the move sentinel to compare

      [edit]Return value

      i.base()== s.base()

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      (C++11)(C++11)(removed in C++20)(C++11)(C++11)(C++11)(C++11)(C++20)
      compares the underlying iterators
      (function template)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/iterator/move_iterator/operator_cmp2&oldid=177430"

      [8]ページ先頭

      ©2009-2025 Movatter.jp