24
Ranges library
[ranges]
24.7
Range adaptors
[range.adaptors]
24.7.4
All view
[range.all]
24.7.4.1
General
[range.all.general]
1
#
views
::
all
returns a
view
that includes all elements of its
range
argument
.
2
#
The name
views
::
all
denotes a range adaptor object (
[range.
adaptor.
object]
)
.
Given a subexpression
E
, the expression
views
::
all
(
E
)
is expression-equivalent to:
(2.1)
decay-copy
(
E
)
if the decayed type of
E
models
view
.
(2.2)
Otherwise,
ref_view
{
E
}
if that expression is well-formed
.
(2.3)
Otherwise,
subrange
{
E
}
.