当我声明 acondition_variable时,它可能会抛出std::system_error.
但是当我声明一个 POD 类型(例如int,double或float)时呢?
就像下面的代码:
int main()
{
//do something
int i; //will here throw exception?
}
如果声明一个POD类型可能会抛出异常,我如何保证
void test() noexcept
{
//do something
int i;
}
是noexcept?