std::__atomic_flag_base(3)

πŸ“¦
version 12.2.1 Β· 2 versions
, in centos-stream 9

πŸŽ€ 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