std::ranges::join_with_view<V,Pattern>::join_with_view
From cppreference.com
< cpp | ranges | join with view
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Ranges library
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++26)(C++26)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)
(C++23)(C++23)
(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)
std::ranges::join_with_view
join_with_view::join_with_view
join_with_view()
(1)
(since C++23)
requires std::default_initializable <V> &&
constexpr explicit join_with_view( V base, Pattern pattern );
(2)
(since C++23)
template< ranges::input_range R >
(3)
(since C++23)
requires std::constructible_from <V, views::all_t <R>> &&
std::constructible_from
<Pattern, ranges::single_view
<ranges::range_value_t </*InnerRng*/>>>
constexpr explicit join_with_view
Constructs a join_with_view
, initializes the underlying view base_
and the stored pattern pattern_
.
Overload | Data members | |
---|---|---|
base_
|
pattern_
| |
(1) | value-initialized | value-initialized |
(2) | initialized with std::move(base) | initialized with std::move(pattern) |
(3) | initialized with views::all (std::forward <R>(r)) | initialized with views::single (std::move(e)) |
[edit] 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
[edit] Example
This section is incomplete
Reason: no example
Reason: no example