std::ranges::lazy_split_view<V,Pattern>:: lazy_split_view
|
Range primitives | |||||||
|
Range concepts | |||||||||||||||||||
|
Range factories | |||||||||
|
Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
Helper items | |||||||||||||||||
|
|
lazy_split_view
(
)
requires
std::
default_initializable
<
V
>
&&
|
(1) | (since C++20) |
constexpr
explicit
lazy_split_view
(
V base, Pattern pattern
)
;
|
(2) | (since C++20) |
template
<
ranges::
input_range
R
>
requires
std::
constructible_from
<
V,
views::
all_t
<
R
>>
&&
|
(3) | (since C++20) |
Constructs a
lazy_split_view
.
Parameters
base | - | the underlying view (to be split) |
pattern | - | view to be used as the delimiter |
e | - | element to be used as the delimiter |
Example
This section is incomplete
Reason: no example |
Defect reports
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
DR | Applied to | Behavior as published | Correct behavior |
---|---|---|---|
LWG 3714
( P2711R1 ) |
C++20 | the multi-parameter constructor was not explicit | made explicit |