Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::ranges::adjacent_view<V,N>::end

      From cppreference.com
      <cpp‎ |ranges‎ |adjacent view
       
       
      Ranges library
      Range adaptors
       
      std::ranges::adjacent_view
      Member functions
      adjacent_view::end
      Iterator
      Member functions
      Non-member functions
      Sentinel
      Member functions
      Non-member functions
       
      constexprauto end() requires(!__SimpleView<V>);
      (1)(since C++23)
      constexprauto end()const requiresranges::range<const V>;
      (2)(since C++23)

      Returns aniterator or asentinel representing the end of theadjacent_view.

      Letbase_ be the underlying view.

      1) Equivalent to:
      ifconstexpr(ranges::common_range<V>)return/*iterator*/<false>(__as_sentinel{},ranges::begin(base_),ranges::end(base_));elsereturn/*sentinel*/<false>(ranges::end(base_));
      2) Equivalent to:
      ifconstexpr(ranges::common_range<const V>)return/*iterator*/<true>(__as_sentinel{},ranges::begin(base_),ranges::end(base_));elsereturn/*sentinel*/<true>(ranges::end(base_));

      Contents

      [edit]Parameters

      (none)

      [edit]Return value

      Aniterator to the element following the last element, if the underlying viewV modelscommon_range. Otherwise, asentinel which compares equal to the end iterator.

      [edit]Notes

      ranges::adjacent_view<V,N> modelscommon_range whenever the underlying viewV does.

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      returns an iterator to the beginning
      (public member function)[edit]
      returns a sentinel indicating the end of a range
      (customization point object)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/adjacent_view/end&oldid=144314"

      [8]ページ先頭

      ©2009-2025 Movatter.jp