<condition_variable>头文件提供了条件变量的定义。其作为基本同步机制,允许被阻塞的线程在某些条件达成或超时时,解除阻塞继续执行。头文件内容namespace std{ enum class cv_status { timeout, no_timeout }; class condition_variable; class condition_variable_any;}D.2.
整型字面值,例如42,就是常量表达式。所以,简单的数学表达式,例如,23x2-4。可以使用其来初始化const整型变量,然后将const整型变量作为新表达的一部分:const int i=23;const int two_i=i*2;const int four=4;const int forty_two=two_i-four;使用常量表达式创建变量也可用在其他常量表达式中,有些事只能用常量表达式去做:指定数组长度:int bounds=99;