std::ranges::view_interface::cbegin - cppreference.com (original) (raw)
| 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.
Let derived be a reference bound to static_cast<D&>(*this).
Same as (1), except that derived is static_cast<const D&>(*this).
[edit] Return value
A constant beginning iterator of the range.
[edit] Notes
All range adaptors and range factories in the standard library and std::ranges::subrange use the default implementation of cbegin.
[edit] 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] |