std::ranges...erface::cend(3)
π NAME π
std::ranges::view_interface::cend β std::ranges::view_interface::cend. Okay bestie, this is page std::ranges...erface::cend(3) from the C++ Standard Libary manual, and the name is literally doing the self-titled album thing πΏβ¨.
β¨ Synopsis β¨
constexpr auto cend(); (1)
(since C++23)
constexpr auto cend() const requires ranges::range<const D>; (2)
(since C++23)
The default implementation of the cend() member function returns the sentinel for the constant iterator of the range. Thatβs the assignment, no cap π«Ά.
Thereβs also a diagram ref in the original: range-begin-end.svg β visual aid, iconic behavior π.
- Let
derivedbe a reference bound tostatic_cast<D&>(*this). Equivalent toreturn ranges::cend(derived);. - Same as (1), except that
derivedisstatic_cast<const D&>(*this).
πΈ Parameters πΈ
(none) β literally none, not even one, we love a low-maintenance icon π
.
π¦ Return value π¦
The sentinel for the constant iterator of the range. Periodt β¨.
π Notes π
All range adaptors and range factories in the standard library and std::ranges::subrange use the default implementation of cend. Thatβs the tea βπ.
π Example π
This section is incomplete β Reason: no example π
Itβs giving placeholder era, but we respect the honesty.
π See also π
endβ returns an iterator to the end of a container or array (C++11) (function template)cendβ returns an iterator to the end of a container or array (C++14) (function template)ranges::cendβ returns a sentinel indicating the end of a read-only range (C++20) (customization point object)
ποΈ Category ποΈ
Category: * Todo no example
mwah π β source/version/date: http://cppreference.com β’ 2024.06.10 β’ page std::ranges...erface::cend(3). Bye bestie, go slay your ranges π§π
π¦ 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