std::ranges::chunk_by_view<V,Pred>:: chunk_by_view
From cppreference.net
<
cpp
|
ranges
|
chunk by view
C++
Ranges library
|
||||||||||||||||||||||
| Range primitives | |||||||
|
|||||||
| Range concepts | |||||||||||||||||||
|
|||||||||||||||||||
| Range factories | |||||||||
|
|||||||||
| Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||
| Helper items | |||||||||||||||||
|
|
||||||||||||||||
std::ranges::chunk_by_view
| Member functions | ||||
|
chunk_by_view::chunk_by_view
|
||||
| Deduction guides | ||||
| Iterator | ||||
|
chunk_by_view
(
)
requires
std::
default_initializable
<
V
>
&&
|
(1) | (since C++23) |
|
constexpr
explicit
chunk_by_view
(
V base, Pred pred
)
;
|
(2) | (since C++23) |
Constructs a
chunk_by_view
.
1)
Default constructor.
Value-initializes
the underlying data members via their respective default member initializers:
2)
Move constructs the underlying data members:
Parameters
| base | - | the view to split |
| pred | - | the function object (a binary predicate) used as a splitting criteria |
Example
|
This section is incomplete
Reason: no example |