std::experi...operatorbool(3)

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

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