std::atomic_ref::operatorT(3)

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

✨ NAME ✨

std::atomic_ref::operatorT β€” and yes bestie, the name is literally std::atomic_ref::operatorT again. The manual name is folded right in here: std::atomic_ref::operatorT(3), from the C++ Standard Libary manual page. It’s giving β€œconversion operator with atomic main character energy” ✨


πŸ¦‹ Synopsis πŸ¦‹

operator T() const noexcept;  (since C++20)

Okay so what it does: it atomically loads and returns the current value of the referenced object. Equivalent to load(). That’s the whole vibe. πŸ’…


πŸŽ€ Parameters πŸŽ€

(none) β€” like, not a single parameter, bestie. The parameter list is empty. Zero. The void. Iconic. 🫢


πŸ’– Return value πŸ’–

The current value of the referenced object. That’s it. That’s the tea. πŸ“


🌈 See also 🌈

  • load β€” atomically obtains the value of the referenced object (public member function)

made with πŸ’– and zero chill β€” source/version: http://cppreference.com, date: 2024.06.10 🫢

πŸ“¦ where this page comes from