W3cubDocs

/C++

deduction guides for std::ranges::chunk_by_view

template< class R, class Pred >
  chunk_by_view( R&&, Pred ) -> chunk_by_view<views::all_t<R>, Pred>;
(since C++23)

The deduction guide is provided for std::ranges::chunk_by_view to allow deduction from range and predicate function.

Example

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/ranges/chunk_by_view/deduction_guides