std::experi..._view::empty(3)
πΈ 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 β
trueif the view is empty πfalseotherwise π
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 β checksize() == 0, get yourbool, 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
- 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