c++11只调用一次的函数

std::once_flag flag;

std::call_once(flag,func_address);

你可能感兴趣的:(c++)