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) | (C++23 起) |
|
constexpr
explicit
chunk_by_view
(
V base, Pred pred
)
;
|
(2) | (C++23 起) |
构造一个
chunk_by_view
。
参数
| base | - | 待分割的视图 |
| pred | - | 用作分割标准的函数对象(二元谓词) |
示例
|
本节内容不完整
原因:缺少示例 |