std::experi...operatorbool(3)
okay so this is the page for std::experi...operatorbool(3), and it lives in the C++ Standard Libary manual β yes, that's the manual name in the header, keep it cute and keep it exact, bestie. π
β¨ NAME β¨
std::experimental::observer_ptr::operatorbool - std::experimental::observer_ptr::operatorbool β that's it, that's the whole NAME section, and honestly the repetition is giving main character energy π.
πΈ Synopsis πΈ
constexpr explicit operator bool() const noexcept; (library fundamentals TS v2)
It checks whether *this has an associated watched object, i.e. whether get() != nullptr. That's the whole vibe check, no cap. β¨
π Parameters π
(none) β literally no parameters. The list is empty, bestie. Zero. Zilch. π«Ά
π Return value π
true if *this has an associated watched object, false otherwise. Simple as that, lowkey iconic. π
π¦ Example π¦
This section is incomplete Reason: no example
Not me crying because there's no example π β but the reason is right there, fr fr.
π See also π
getβ returns a pointer to the watched object (public member function) π
π Category π
* Todo no example
The category is literally telling you there's no example, and the consistency is honestly obsessed π.
Source/version + date from the footer: http://cppreference.com, 2024.06.10, and the page is std::experi...operatorbool(3) β slay, bye bestie, go check that bool π
β¨
π¦ 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