Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::ranges::split_view<V,Pattern>::sentinel

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

      The return type ofsplit_view::end when the underlyingview typeV does not modelscommon_range.

      Contents

      [edit]Data members

      Member Description
      ranges::sentinel_t<V>end_(private) the sentinel for the underlyingview
      (exposition-only member object*)

      [edit]Member functions

      (constructor)
      (C++20)
      constructs a sentinel
      (public member function)

      std::ranges::split_view::sentinel::sentinel

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

      [edit]Non-member functions

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

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

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

      Equivalent toreturn x.cur_== y.end_ and!x.trailing_empty_;.

      The!= operator issynthesized fromoperator==.

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

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

      [8]ページ先頭

      ©2009-2025 Movatter.jp