24
Ranges library
[ranges]
24.6
Range factories
[range.factories]
24.6.5
Istream view
[range.istream]
24.6.5.1
Overview
[range.istream.overview]
1
#
basic_istream_view
models
input_range
and reads (using
operator
>
>
) successive elements from its corresponding input stream
.
2
#
[
Example
1
:
auto
ints
=
istringstream
{
"0 1 2 3 4"
}
; ranges
::
copy
(
ranges
::
istream_view
<
int
>
(
ints
)
, ostream_iterator
<
int
>
{
cout,
"-"
}
)
;
// prints
0-1-2-3-4-
—
end example
]