std::once_flag flag1 void simple_do_once() { std::call_once(flag1, [](){ std::cout << "Simple example: called once\n"; }); }
call_once
最新推荐文章于 2024-04-17 00:32:20 发布
std::once_flag flag1 void simple_do_once() { std::call_once(flag1, [](){ std::cout << "Simple example: called once\n"; }); }