std::experi..._view::back(3)

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

🌸 NAME 🌸

std::experimental::basic_string_view::back β€” okay so the NAME is literally std::experimental::basic_string_view::back again (yes bestie, it repeats, that's the manpage vibe πŸ’…). This is the std::experi..._view::back(3) page from the C++ Standard Libary manual, and we're about to make it make sense. 🫢

✨ Synopsis ✨

the whole signature vibe check:

constexpr const_reference back() const;  (library fundamentals TS)

Returns a reference to the last character in the view. That's the main character move. ✨

πŸŽ€ Parameters πŸŽ€

(none) β€” literally zero parameters, not a single one, bestie πŸ™ˆ.

πŸ’– Return value πŸ’–

Reference to the last character, equivalent to operator[](size() - 1). That's the whole return-value story, periodt. πŸ’–

πŸ”₯ Complexity πŸ”₯

Constant. ⚑ no cap.

πŸ¦‹ See also πŸ¦‹

  • front β€” accesses the first character (public member function). πŸ¦‹

πŸ’… Category πŸ’…

  • Noindexed pages

source/version + date slay: http://cppreference.com + 2024.06.10 β€” mwah πŸ’‹

πŸ“¦ where this page comes from