Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      operator==(ranges::enumerate_view::iterator, ranges::enumerate_view::sentinel )

      From cppreference.com
      <cpp‎ |ranges‎ |enumerate view‎ |sentinel
       
       
      Ranges library
      Range adaptors
       
      std::ranges::enumerate_view
      Member functions
      Deduction guides
      Nested classes
      Iterator
      Sentinel
      operator==(enumerate_view::iterator,enumerate_view::sentinel)
       
      friendconstexprbool operator==(const/*iterator*/<Const>& x,const/*sentinel*/& y);
      (since C++23)

      Compares the underlying iterator ofx with the underlying sentinel ofy.

      Letcurrent_ denote the underlying iterator ofx andend_ denote the underlying sentinel ofy. Equivalent to:

      return x.current_== y.end_;.

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

      The!= operator issynthesized fromoperator==.

      [edit]Parameters

      x - aniterator to compare
      y - asentinel to compare

      [edit]Return value

      The result of comparison.

      [edit]Example

      This section is incomplete
      Reason: no example
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/enumerate_view/sentinel/operator_cmp&oldid=172627"

      [8]ページ先頭

      ©2009-2025 Movatter.jp