constexpr auto cbegin(); | (1) | (since C++23) |
constexpr auto cbegin() const requires ranges::range<const D>; | (2) | (since C++23) |
The default implementation of cbegin()
member function returns a constant beginning iterator of the range.
derived
be a reference bound to static_cast<D&>(*this)
.return ranges::cbegin(derived);
.derived
is static_cast<const D&>(*this)
.(none).
A constant beginning iterator of the range.
All range adaptors and range factories in the standard library and std::ranges::subrange
use the default implementation of cbegin
.
(C++11)(C++14) | returns an iterator to the beginning of a container or array (function template) |
(C++20) | returns an iterator to the beginning of a read-only range (customization point object) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/ranges/view_interface/cbegin