Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::ranges::filter_view<V,Pred>::sentinel

      From cppreference.com
      <cpp‎ |ranges‎ |filter view
       
       
      Ranges library
      Range adaptors
       
       
      class/*sentinel*/;
      (since C++20)
      (exposition only*)

      The return type offilter_view::end when the underlyingviewV does not modelcommon_range.

      Contents

      [edit]Data members

      Member Definition
      Vend_(private) the sentinel of the underlyingview
      (exposition-only member object*)

      [edit]Member functions

      constructs a sentinel
      (public member function)
      returns the underlying sentinel
      (public member function)

      std::ranges::filter_view::sentinel::sentinel

      /*sentinel*/()=default;
      (1)(since C++20)
      constexprexplicit/*sentinel*/( filter_view& parent);
      (2)(since C++20)
      1) Value-initializesend_ via its default member initializer (=ranges::sentinel_t<V>()).
      2) Initializesend_ withranges::end(parent.base_).

      std::ranges::filter_view::sentinel::base

      constexprranges::sentinel_t<V> base()const;
      (since C++20)

      Equivalent toreturn end_;.

      [edit]Non-member functions

      (C++20)
      compares the underlying iterator and the underlying sentinel
      (function)

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

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

      Equivalent toreturn x.current_== y.end_;, wherecurrent_ is the underlying iterator wrapped infilter_view::iterator.

      The!= operator issynthesized fromoperator==.

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

      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/filter_view/sentinel&oldid=181345"

      [8]ページ先頭

      ©2009-2025 Movatter.jp