Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::ranges::join_view<V>::end

      From cppreference.com
      <cpp‎ |ranges‎ |join view
       
       
      Ranges library
      Range adaptors
       
       
      constexprauto end();
      (1)(since C++20)
      constexprauto end()const

          requiresranges::input_range<const V>&&

                   std::is_reference_v<ranges::range_reference_t<const V>>;
      (2)(since C++20)

      Returns asentinel or aniterator representing the end of thejoin_view.

      Letbase_ be the underlying view:

      1) Equivalent to
      ifconstexpr(ranges::forward_range<V>&&std::is_reference_v<ranges::range_reference_t<V>>&&ranges::forward_range<ranges::range_reference_t<V>>&&ranges::common_range<V>&&ranges::common_range<ranges::range_reference_t<V>>)return/*iterator*/</*simple-view*/<V>>{*this,ranges::end(base_)};elsereturn/*sentinel*/</*simple-view*/<V>>{*this};
      2) Equivalent to
      ifconstexpr(ranges::forward_range<const V>&&std::is_reference_v<ranges::range_reference_t<const V>>&&ranges::forward_range<ranges::range_reference_t<const V>>&&ranges::common_range<const V>&&ranges::common_range<ranges::range_reference_t<const V>>)return/*iterator*/<true>{*this,ranges::end(base_)};elsereturn/*sentinel*/<true>{*this};

      Contents

      [edit]Parameters

      (none)

      [edit]Return value

      1) sentinel which compares equal to the end iterator.
      2) iterator to the element following the last element.

      [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/join_view/end&oldid=172581"

      [8]ページ先頭

      ©2009-2025 Movatter.jp