std::experi..._view::rend,(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

🌸 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 beginning
  • crbegin β€” (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