std::experi..._view::rend,(3)
πΈ NAME πΈ
okay bestie, welcome to the <pink>std::experi..._view::rend,(3)</pink> page β that's the title, and the manual up top is C++ Standard Libary (yes, literally spelled like that in the header, no cap π). The NAME line is exactly this:
std::experimental::basic_string_view::rend, - std::experimental::basic_string_view::rend,
β¨ Synopsis β¨
two overloads, both from the library fundamentals TS, and they are giving constexpr + noexcept energy:
constexpr const_reverse_iterator rend() const noexcept; (library fundamentals TS)
constexpr const_reverse_iterator crend() const noexcept; (library fundamentals TS)
so what do they do? okay so: rend returns a reverse iterator to the character following the last character of the reversed view. it corresponds to the character preceding the first character of the non-reversed view. that character is literally acting as a placeholder, and attempting to access it results in undefined behavior.
π¨ undefined behavior alert, bestie: that placeholder character is not for touching. attempting to access it is undefined behavior, periodt.
there's also a lil visual moment here: range-rbegin-rend.svg π¦
π§Έ Parameters π§Έ
(none) β no arguments, no stress, no drama π
π Return value π
a const_reverse_iterator to the character following the last character. that's the whole vibe.
β‘ Complexity β‘
Constant. iconic, effortless, no notes π
π See also π
rbeginβ returns a reverse iterator to the beginningcrbeginβ (public member function)
π·οΈ Category π·οΈ
- Noindexed pages
footer sign-off, mwah π β source is http://cppreference.com, version/date is 2024.06.10 π«Άβ¨
π¦ 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