std::atomic::operatorT(3)

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

πŸ’… NAME

okay so bestie, this is std::atomic::operatorT β€” and the name is literally std::atomic::operatorT - std::atomic::operatorT. That’s it, that’s the name, we move πŸ’–. It lives in the C++ Standard Libary manual (yes, β€œLibary,” that’s the header’s spelling, I’m not fixing it πŸ’€).


✨ SYNOPSIS ✨

          operator T() const noexcept;          (1) (since C++11)
          operator T() const volatile noexcept; (2) (since C++11)

These overloads atomically load and return the current value of the atomic variable. Equivalent to load() β€” yes, literally load() energy, no cap 🫢.

🚨 deprecation tea, bestie: it is deprecated if std::atomic<T>::is_always_lock_free is false and (since C++20) overload (2) participates in overload resolution. Keep that in mind πŸ’….

πŸŽ€ PARAMETERS

  • (none) β€” literally no parameters, bestie. Not a single one 🌸.

πŸ¦‹ RETURN VALUE

The current value of the atomic variable. iconic, honestly ✨.


🌸 SEE ALSO

  • load β€” atomically obtains the value of the atomic object (public member function) πŸ‘‘

that’s the whole page, bestie β€” sourced from http://cppreference.com, dated 2024.06.10, and signed std::atomic::operatorT(3). bye πŸ’–βœ¨

πŸ“¦ where this page comes from