Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      operator==(ranges::join_view::iterator, ranges::join_view::iterator)

      From cppreference.com
      <cpp‎ |ranges‎ |join view‎ |iterator
       
       
      Ranges library
      Range adaptors
       
       
      friendconstexprbool operator==(const/*iterator*/& x,const/*iterator*/& y)

          requires
             /*ref-is-glvalue*/&&
             std::equality_comparable<ranges::iterator_t<Base>>&&

             std::equality_comparable<ranges::iterator_t<ranges::range_reference_t<Base>>>;
      (since C++20)

      Compares the underlying iterators.

      Equivalent to:return(x.outer_== y.outer_) and(x.inner_== y.inner_);, whereouter_ andinner_ are the underlying iterators. The constant/*ref-is-glvalue*/ in the requires-clause is equal tostd::is_reference_v<ranges::range_reference_t<Base>>.

      The!= operator issynthesized fromoperator==.

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

      Contents

      [edit]Parameters

      x, y - iterators to compare

      [edit]Return value

      Result of comparison.

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      (C++20)
      compares a sentinel with an iterator returned fromjoin_view::begin
      (function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/join_view/iterator/operator_cmp&oldid=175911"

      [8]ページ先頭

      ©2009-2026 Movatter.jp