24
Ranges library
[ranges]
24.3
Range access
[range.access]
24.3.5
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
1
:
Whenever
ranges
::
cend
(
E
)
is a valid expression, the types
S
and
I
of the expressions
ranges
::
cend
(
E
)
and
ranges
::
cbegin
(
E
)
model
sentinel_for
<
S, I
>
.
—
end note
]