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

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

πŸ’… std::experi..._view::end,(3) πŸ’…

okay bestie, welcome to the std::experi..._view::end,(3) page from the C++ Standard Libary β€” yes, β€œLibary” is literally how it’s spelled in the header, and we are not fixing it, we are respecting the lore ✨


✨ NAME ✨

This one is all about std::experimental::basic_string_view::end, β€” and the NAME block is a little quirky: it lists std::experimental::basic_string_view::end, - and then std::experimental::basic_string_view::end, again, commas and all. keeping it exact, no cap 🫢


πŸ¦‹ Synopsis πŸ¦‹

Two signatures are hanging out here, and both are tagged (library fundamentals TS):

constexpr const_iterator end() const noexcept;
constexpr const_iterator cend() const noexcept;

There’s also a range-begin-end.svg diagram on the page, just vibing as the visual bestie 🌈

Here’s the tea: this thing returns an iterator to the character following the last character of the view. That character acts as a placeholder, and attempting to access it results in undefined behavior β€” so do not touch it, bestie, I’m serious 😭


🌸 Parameters 🌸

(none) β€” literally none, zero, empty, the void, etc. πŸ’€


πŸŽ€ Return value πŸŽ€

A const_iterator to the character following the last character. that’s the whole return value, periodt πŸ‘‘


⭐ Complexity ⭐

Constant β€” iconic, fast, no drama πŸ’…


πŸ”₯ See also πŸ”₯

  • begin β€” returns an iterator to the beginning
  • cbegin β€” public member function

🌈 Category 🌈

  • Noindexed pages

byeee πŸ’– β€” source: http://cppreference.com, version/date: 2024.06.10, and the page title is std::experi..._view::end,(3). mwah 🫢

πŸ“¦ where this page comes from