std::ranges...ange::empty(3)
π std::ranges...ange::empty(3) π
okay so this little icon is from the C++ Standard Libary manual (yes, that's the manual name exactly, spelling and all β don't come for me, bestie). It's section 3, and the vibe is βdoes this subrange have literally nothing in it?β π
π NAME π
std::ranges::subrange::empty β std::ranges::subrange::empty. That's the whole name, twice, because the original said it twice and I'm not about to ghost a detail. π«Ά
β¨ Synopsis β¨
constexpr bool empty() const; (since C++20)
This one checks whether the subrange is empty β i.e. the stored iterator and sentinel compare equal. No cap. π₯
π«Ά Parameters π«Ά
(none)β literally no parameters, bestie. π
π Return value π
trueif the stored iterator and sentinel compare equal.falseotherwise.
So it's giving βare these two equal?β energy, and that's the whole answer. πΈ
πΈ Example πΈ
This section is incomplete Reason: no example
not me reading a whole Example section just to find out there's no example π
π¦ See also π¦
size(C++20)β obtains the size of the subrange (public member function). πempty(C++17)β checks whether the container is empty (function template). π«ranges::empty(C++20)β checks whether a range is empty (customization point object). π
π§ Category π§
- Todo no example β the original category is literally
* Todo no example. π
okay that's the whole page, bestie! source: http://cppreference.com, dated 2024.06.10, and the title again for the road: std::ranges...ange::empty(3). mwah πβ¨
π¦ 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