DOKK / manpages / debian 12 / libstdc++-11-doc / std::once_flag.3cxx.en
std::once_flag(3cxx) std::once_flag(3cxx)

std::once_flag - Flag type used by std::call_once.


once_flag (const once_flag &)=delete
Deleted copy constructor. once_flag & operator= (const once_flag &)=delete
Deleted assignment operator.


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.

Flag type used by std::call_once.

Definition at line 674 of file mutex.

Deleted copy constructor.

once_flag & std::once_flag::operator= (const once_flag &) [delete]

Deleted assignment operator.

Invoke a callable and synchronize with other calls using the same flag.

Definition at line 772 of file mutex.

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

Thu Feb 16 2023 libstdc++