std::atomic::operatorT(3)
π 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 ifstd::atomic<T>::is_always_lock_freeisfalseand (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
- 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