Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::ranges::transform_view<V,F>::end

      From cppreference.com
      <cpp‎ |ranges‎ |transform view
       
       
      Ranges library
      Range adaptors
       
      std::ranges::transform_view
      Member functions
      transform_view::end
      Deduction guides
      Iterator
      Sentinel
       
      constexpr/*sentinel*/<false> end();
      (1)(since C++20)
      constexpr/*iterator*/<false> end() requiresranges::common_range<V>;
      (2)(since C++20)
      constexpr/*sentinel*/<true> end()const

          requiresranges::range<const V>&&

                   std::regular_invocable<const F&,ranges::range_reference_t<const V>>;
      (3)(since C++20)
      constexpr/*iterator*/<true> end()const

          requiresranges::common_range<const V>&&

                   std::regular_invocable<const F&,ranges::range_reference_t<const V>>;
      (4)(since C++20)

      Returns asentinel or aniterator representing the end of thetransform_view.

      Equivalent to:

      1)return sentinel<false>{ranges::end(base_);.
      2)return iterator<false>{*this,ranges::end(base_)};.
      3)return sentinel<true>{ranges::end(base_)};.
      4)return iterator<true>{*this,ranges::end(base_)};.

      Contents

      [edit]Parameters

      (none)

      [edit]Return value

      1,3) sentinel which compares equal to the end iterator
      2,4) iterator to the element following the last element

      [edit]Notes

      end() returns an iterator if and only if the underlying view is acommon_range:transform_view<V,F> modelscommon_range wheneverV 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/transform_view/end&oldid=181341"

      [8]ページ先頭

      ©2009-2025 Movatter.jp