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