26
Ranges library
[ranges]
26.7
Range adaptors
[range.adaptors]
26.7.14
Join view
[range.join]
26.7.14.1
Overview
[range.join.overview]
1
#
join_
view
flattens a view of ranges into a view
.
2
#
The name
views
::
join
denotes a range adaptor object (
[range.
adaptor.
object]
)
.
Given a subexpression
E
, the expression
views
::
join
(
E
)
is expression-equivalent to
join_
view
<
views
::
all_
t
<
decltype
(
(
E
)
)
>
>
{
E
}
.
3
#
[
Example
1
:
vector
<
string
>
ss
{
"hello"
,
" "
,
"world"
,
"!"
}
;
for
(
char
ch
:
ss
|
views
::
join
)
cout
<
<
ch;
// prints
hello world!
—
end example
]