Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::ranges::iota_view<W, Bound>::sentinel

      From cppreference.com
      <cpp‎ |ranges‎ |iota view
       
       
      Ranges library
      Range adaptors
       
      std::ranges::iota_view
      Member functions
      Deduction guides
      Nested classes
      Iterator
      Helper concepts
      Member types
      Member functions
      Non-member functions
      Sentinel
      Member functions
      Non-member functions
       
      struct/*sentinel*/;
      (exposition only*)

      ranges::iota_view<W, Bound>::sentinel is the type of the reachable sentinels returned byend() ofranges::iota_view<W, Bound>.

      Contents

      [edit]Data members

      Member Definition
      Boundbound_ the sentinel value
      (exposition-only member object*)

      [edit]Member functions

      std::ranges::iota_view::sentinel::sentinel

      /*sentinel*/()=default;
      (1)(since C++20)
      constexprexplicit/*sentinel*/( Bound bound);
      (2)(since C++20)
      1) Value-initializesbound_ .
      2) Initializesbound_ withbound.

      [edit]Non-member functions

      operator==(std::ranges::iota_view::iterator, std::ranges::iota_view::sentinel)

      friendconstexprbool operator==(const/*iterator*/& x,
                                       const/*sentinel*/& y);
      (since C++20)

      Returnsx.value_ == y.bound_.

      The!= operator issynthesized fromoperator==.

      This function is not visible to ordinaryunqualified orqualified lookup, and can only be found byargument-dependent lookup whensentinel is an associated class of the arguments.

      operator-(std::ranges::iota_view::iterator, std::ranges::iota_view::sentinel)

      friendconstexprstd::iter_difference_t<W>

          operator-(const/*iterator*/& x,const/*sentinel*/& y)

          requiresstd::sized_sentinel_for<Bound, W>;
      (1)(since C++20)
      friendconstexprstd::iter_difference_t<W>

          operator-(const/*sentinel*/& x,const/*iterator*/& y)

          requiresstd::sized_sentinel_for<Bound, W>;
      (2)(since C++20)
      1) Returnsx.value_ - y.bound_.
      2) Returns-(y.value_ - x.bound_ ).

      These functions are not visible to ordinaryunqualified orqualified lookup, and can only be found byargument-dependent lookup whensentinel is an associated class of the arguments.

      [edit]Example

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

      [8]ページ先頭

      ©2009-2025 Movatter.jp