On this page
std::ranges::join_with_view<V,Pattern>::join_with_view
|
(1) | (since C++23) |
|
(2) | (since C++23) |
|
(3) | (since C++23) |
Constructs a join_with_view.
1) Default constructor. Value-initializes the underlying view and the pattern.
2) Initializes the underlying view with
std::move(base) and the stored pattern with std::move(pattern).
3) Initializes the underlying view with
views::all(std::forward<R>(r)) and the stored pattern with views::single(std::move(e)).
Parameters
| base | - | a view of ranges to be flattened |
| pattern | - | view to be used as the delimiter |
| e | - | element to be used as the delimiter |
Example
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/ranges/join_with_view/join_with_view