std::ranges...face::cbegin(3)
π std::ranges::view_interface::cbegin β C++ Standard Library, bestie
πΈ NAME
std::ranges::view_interface::cbegin β that's the name, no cap. It's giving "tiny but important member function" energy.
π Synopsis
The default implementation ofcbegin()member function returns a constant beginning iterator of the range. There's literally a diagram for this vibe:range-begin-end.svg
constexpr auto cbegin(); (1)
(since C++23)
constexpr auto cbegin() const requires ranges::range<const D>; (2)
(since C++23)
- Let
derivedbe a reference bound tostatic_cast<D&>(*this). Equivalent toreturn ranges::cbegin(derived);. - Same as (1), except that
derivedisstatic_cast<const D&>(*this).
π Parameters
(none) β literally none, bestie. Not a single parameter. She's low-maintenance like that.
β¨ Return value
A constant beginning iterator of the range.
π Notes
All range adaptors and range factories in the standard library and std::ranges::subrange use the default implementation of cbegin. So yeah, this default implementation is doing a LOT of heavy lifting behind the scenes. Iconic behavior, honestly.
π¦ Example
This section is incomplete Reason: no example
Not me being nosy, but the page is literally telling on itself here: no example yet. The category says it all: * Todo no example.
π See also
begincbeginβ returns an iterator to the beginning of a container or array(C++11),(function template),(C++14)ranges::cbeginβ returns an iterator to the beginning of a read-only range(C++20),(customization point object)
π·οΈ Category
* Todo no example β yes, that's the category tag, verbatim, periodt.
okay bestie that's the whole page! the source/version in the footer is http://cppreference.com, the date is 2024.06.10, and the footer page label is std::ranges...face::cbegin(3). bye, love u, stay iterating πβ¨
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms