std::atomic_flag(3)

hey bestie!! welcome to the Library Functions Manual page for std::atomic_flag ✨ this is the whole vibe, no cap.

✨ NAME ✨

std::atomic_flag β€” atomic_flag


🌸 SYNOPSIS 🌸

#include <atomic>

πŸ’… Public Member Functions πŸ’…

okay so here's the full roster, every single one, periodt:

  • constexpr atomic_flag (bool __i) noexcept β€” the constexpr constructor that takes a bool __i and is noexcept 🫢
  • atomic_flag (const atomic_flag &)=delete β€” copy constructor? deleted. not invited to the party πŸ’€
  • void clear (memory_order __m=memory_order_seq_cst) noexcept β€” clears it, with memory_order __m defaulting to memory_order_seq_cst, and it's noexcept 🧚
  • void clear (memory_order __m=memory_order_seq_cst) volatile noexcept β€” same clear, but the volatile flavor, same default memory_order_seq_cst, still noexcept ✨
  • atomic_flag & operator= (const atomic_flag &) volatile =delete β€” volatile assignment operator, deleted. nope πŸ™ˆ
  • atomic_flag & operator= (const atomic_flag &)=delete β€” regular assignment operator, also deleted. double nope πŸ’…
  • bool test (memory_order __m=memory_order_seq_cst) const noexcept β€” tests it, takes memory_order __m=memory_order_seq_cst, const, noexcept, returns bool πŸ”₯
  • bool test (memory_order __m=memory_order_seq_cst) const volatile noexcept β€” the const volatile test, same default memory_order_seq_cst, noexcept, returns bool 🌈
  • bool test_and_set (memory_order __m=memory_order_seq_cst) noexcept β€” test and set, memory_order __m=memory_order_seq_cst, noexcept, returns bool ⭐
  • bool test_and_set (memory_order __m=memory_order_seq_cst) volatile noexcept β€” the volatile test and set, same default memory_order_seq_cst, noexcept, returns bool πŸ‘‘

πŸ¦‹ Detailed Description πŸ¦‹

atomic_flag

that's literally it. the whole detailed description. iconic minimalism, honestly 😭


πŸŽ€ Author πŸŽ€

Generated automatically by Doxygen for libstdc++ from the source code.


and that's the page, bestie!! footer says libstdc++ and it's the std::atomic_flag(3) manual page β€” no date on this one, just that source/version energy. bye, ily, go atomically flag something πŸ’–πŸ¦‹βœ¨

πŸ“¦ where this page comes from
  • arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 Β· GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
  • fedora 44: libstdc++-docs 16.0.1-0.10.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
  • fedora 44: libstdc++-docs 16.2.1-2.fc44
  • fedora 44: libstdc++-docs 16.2.1-3.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms