constexprauto cend(); | (1) | (since C++23) |
| (2) | (since C++23) |
| | |
The default implementation ofcend()
member function returns the sentinel for the constant iterator of the range.
1) Let
derived be a reference bound to
static_cast<D&>(*this). Equivalent to
returnranges::cend(derived);.
2) Same as(1), except thatderived isstatic_cast<const D&>(*this).
[edit]Return value
The sentinel for the constant iterator of the range.
All range adaptors and range factories in the standard library andstd::ranges::subrange use the default implementation ofcend
.
[edit]Example
| This section is incomplete Reason: no example |
[edit]See also
| returns an iterator to the end of a container or array (function template)[edit] |
| returns a sentinel indicating the end of a read-only range (customization point object)[edit] |