24
Ranges library
[ranges]
24.3
Range access
[range.access]
24.3.4
ranges::cend
[range.access.cend]
1
#
The name
ranges
::
cend
denotes a customization point object (
[customization.point.object]
)
.
The expression
ranges
::
cend
(
E
)
for a subexpression
E
of type
T
is expression-equivalent to:
(1.1)
ranges
::
end
(
static_cast
<
const
T
&
>
(
E
)
)
if
E
is an lvalue.
(1.2)
Otherwise,
ranges
::
end
(
static_cast
<
const
T
&
&
>
(
E
)
)
.
2
#
[
Note
:
Whenever
ranges
::
cend
(
E
)
is a valid expression, the types
S
and
I
of
ranges
::
cend
(
E
)
and
ranges
::
cbegin
(
E
)
model
sentinel_for
<
S, I
>
.
—
end note
]