26
Ranges library
[ranges]
26.7
Range adaptors
[range.adaptors]
26.7.6
All view
[range.all]
26.7.6.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,
owning_
view
{
E
}
.