Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      operator==,<,>,<=,>=,<=>(ranges::stride_view::iterator)

      From cppreference.com
      <cpp‎ |ranges‎ |stride view‎ |iterator
       
       
      Ranges library
      Range adaptors
       
      std::ranges::stride_view
      Member functions
      Deduction guides
      Iterator
      Member functions
      Non-member functions
      operator==(std::default_sentinel_t)
      operator==(stride_view::iterator)
      operator<(stride_view::iterator)
      operator>(stride_view::iterator)
      operator<=(stride_view::iterator)
      operator>=(stride_view::iterator)
      operator<=>(stride_view::iterator)
       
      friendconstexprbool operator==(const/*iterator*/& x,std::default_sentinel_t);
      (1)(since C++23)
      friendconstexprbool operator==(const/*iterator*/& x,const/*iterator*/& y)
          requiresstd::equality_comparable<ranges::iterator_t<Base>>;
      (2)(since C++23)
      friendconstexprbool operator<(const/*iterator*/& x,const/*iterator*/& y)
          requiresranges::random_access_range<Base>;
      (3)(since C++23)
      friendconstexprbool operator>(const/*iterator*/& x,const/*iterator*/& y)
          requiresranges::random_access_range<Base>;
      (4)(since C++23)
      friendconstexprbool operator<=(const/*iterator*/& x,const/*iterator*/& y)
          requiresranges::random_access_range<Base>;
      (5)(since C++23)
      friendconstexprbool operator>=(const/*iterator*/& x,const/*iterator*/& y)
          requiresranges::random_access_range<Base>;
      (6)(since C++23)
      friendconstexprauto operator<=>(const/*iterator*/& x,const/*iterator*/& y)

          requiresranges::random_access_range<Base> and

                   std::three_way_comparable<ranges::iterator_t<Base>>;
      (7)(since C++23)

      Compares the underlying iterators/sentinels.

      Letcurrent_ be the underlying iterator, andend_ be the underlying sentinel.

      1) Equivalent toreturn x.current_== x.end_;.
      2) Equivalent toreturn x.current_== y.current_;.
      3) Equivalent toreturn x.current_< y.current_;.
      4) Equivalent toreturn y< x;
      5) Equivalent toreturn!(y< x);
      6) Equivalent toreturn!(x< y);
      7) Equivalent toreturn x.current_<=> y.current_;.

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

      The!= operator issynthesized fromoperator==.

      [edit]Parameters

      x, y - iterators to compare

      [edit]Return value

      result of comparison

      [edit]Example

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

      [8]ページ先頭

      ©2009-2026 Movatter.jp