25
Ranges library
[ranges]
25.7
Range adaptors
[range.adaptors]
25.7.35
To input view
[range.to.input]
25.7.35.1
Overview
[range.to.input.overview]
1
#
to_
input_
view
presents a view of an underlying sequence as an input-only non-common range
.
[
Note
1
:
This is useful to avoid overhead that can be necessary to provide support for the operations needed for greater iterator strength
.
—
end note
]
2
#
The name
views
::
to_
input
denotes a range adaptor object (
[range.
adaptor.
object]
)
.
Let
E
be an expression and let
T
be
decltype
(
(
E
)
)
.
The expression
views
::
to_
input
(
E
)
is expression-equivalent to:
(2.1)
views
::
all
(
E
)
if
T
models
input_
range
, does not satisfy
common_
range
, and does not satisfy
forward_
range
.
(2.2)
Otherwise,
to_
input_
view
(
E
)
.