Can GCC optimize methods of a class with compile-time constant variables?
GCC编译时常数可以与变量的一类方法优化?
GCC provides a built-in function that you can use to determine whether a value is a constant at compile-time.
在编译时,可以使用GCC提供的一个内置函数判断一个值是否是常量。
The standardese way of looking at things is simply that the value you supply as a template argument must be a constant known at compile time.
standardese看待事物的方式是,您提供作为一个模板参数的值必须在编译时是已知常数。
When initializing a named attribute argument, the value must be a compile time constant.
初始化具名的属性引数时,值必须是编译时期常数。
It is a compile-time error for a single ElementType constant to appear more than once in a Target annotation. For example, the following meta-annotation is illegal.
对于一个元素类型常量出现多余一个的目标注释是编译错误的。例如下面的例子是不合法的。
A constant-expression is an expression that can be fully evaluated at compile-time.
常量表达式是可在编译时可完全计算的表达式。
A constant-expression is an expression that can be fully evaluated at compile-time.
常量表达式是可在编译时可完全计算的表达式。
应用推荐