function template
std::call_once
- Header
<mutex>- Scope
std- cppreference
- std::call_once
Synopsis
template<class Callable, class... Args>
void call_once(once_flag& flag, Callable&& func, Args&&... args);function template
<mutex>stdtemplate<class Callable, class... Args>
void call_once(once_flag& flag, Callable&& func, Args&&... args);