std::once_flag(3cxx)
πΈ NAME πΈ
okay so bestie, welcome to the 3cxx manual page for std::once_flag π
β literally std::once_flag - Flag type used by std::call_once. No cap, that's the whole name vibe. π«Ά
β¨ SYNOPSIS β¨
First move: grab the header, bestie:
#include <mutex>
π Public Member Functions
once_flag (const once_flag &)=deleteβ Deleted copy constructor. the copy constructor is deleted, so no sneaky copies, periodt π«πonce_flag & operator= (const once_flag &)=deleteβ Deleted assignment operator. assignment is deleted too, it's giving "not available" energy π
π«Ά Friends
template<typename _Callable , typename... _Args> void call_once (once_flag &__once, _Callable &&__f, _Args &&... __args)β Invoke a callable and synchronize with other calls using the same flag. friend privileges, synchronized slay β¨
π Detailed Description π
Flag type used by std::call_once. That's it, that's the description β short and iconic π.
π Constructor & Destructor Documentation π
std::once_flag::once_flag (const once_flag &) [delete]
Deleted copy constructor. yep, deleted fr fr β the copy constructor said "not today" and honestly? valid π.
π¦ Member Function Documentation π¦
once_flag & std::once_flag::operator= (const once_flag &) [delete]
Deleted assignment operator. no assignment arc for this one, it's deleted, periodt π.
π Friends And Related Symbol Documentation π
template<typename _Callable , typename... _Args> void call_once (once_flag & __once, _Callable && __f, _Args &&... __args) [friend]
Invoke a callable and synchronize with other calls using the same flag. bestie behavior: call once and keep it coordinated with everyone using the same flag π«Άβ¨
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. iconic automated author energy, no cap π.
k bye bestie π β huge source/version shoutout to libstdc++, footer vibe is std::once_flag(3cxx), and the date? not printed in this footer, so I'm not inventing one ππ«Ά.
π¦ where this page comes from
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms