std::__atomic_flag_base(3)
π NAME π
hey bestie, welcome to the std::__atomic_flag_base(3) page from the Library Functions Manual. This one is short and iconic: std::__atomic_flag_base is the base type for atomic_flag. π
β¨ SYNOPSIS β¨
Inherited by std::atomic_flag.
π Public Attributes π
__atomic_flag_data_type _M_iβ the public attribute, and yes, that is literally its whole name. slay.
π¦ Detailed Description π¦
So std::__atomic_flag_base is the base type for atomic_flag. Groundbreaking? Maybe. Important? Also yes. π«Ά
The base type is POD with data, which lets atomic_flag derive from it and meet the standard layout type requirement. the way that works is lowkey elegant ngl. β¨
On top of compatibility with a C interface, this lets different implementations of atomic_flag use the same atomic operation functions, via a standard conversion to the __atomic_flag_base argument. iykyk. π₯
Definition at line 186 of file atomic_base.h. periodt.
πΈ Author πΈ
Generated automatically by Doxygen for libstdc++ from the source code. not a human author, just robot-generated bestie energy. π
source/version and date check: this page is from libstdc++, dated Thu Jul 11 2024. mwah ππ
π¦ where this page comes from
- centos-stream 9: gcc-toolset-12-libstdc++-docs 12.2.1-7.7.el9 Β· GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms