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

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

🌸 NAME 🌸

std::experimental::basic_string_view::empty β€” bestie, it's literally the same name twice, that's the whole page, std::experimental::basic_string_view::empty πŸ’–

This is the manual page for it, filed under the C++ Standard Libary (yes, that's how the page spells it, no I will not be fixing it, it's iconic πŸ’…).


✨ Synopsis ✨

constexpr bool empty() const noexcept;  (library fundamentals TS)

okay so here's the vibe check: this one asks the view if it has, like, no characters. Zero. Nada. Empty. That's it, that's whether size() == 0. constexpr, const, noexcept β€” she's giving fully qualified main character energy πŸ‘‘πŸ¦‹


πŸŽ€ Parameters πŸŽ€

(none) β€” fr fr, she takes nothing, she needs nothing, she's lowkey self-sufficient πŸ™ˆ


⭐ Return value ⭐

  • true if the view is empty 🌈
  • false otherwise πŸ’€

that's the whole deal bestie, no plot twist ✨


πŸ”₯ Complexity πŸ”₯

Constant. O(1), she does NOT make you wait, ate and left no crumbs πŸ“


🫢 See also 🫢

  • size β€” returns the number of characters (public member function) πŸ’œ
  • length β€” (public member function) β€” yes that's all the page says about it, I'm not out here making things up 😭
  • max_size β€” returns the maximum number of characters (public member function) 🌸

🧚 Category 🧚

  • Noindexed pages πŸ‘€

ngl bestie, this page is short and sweet and that's the whole point β€” check size() == 0, get your bool, move on with your day πŸ’–

source + version: http://cppreference.com Β· <purple>2024.06.10</purple> Β· and the page title tag again for the road: std::experi..._view::empty(3) β€” slay, that's the whole page, bye bestie πŸŽ€βœ¨πŸ’…

πŸ“¦ where this page comes from