go top

常量表达式

网络释义

  constant expression

因为我们希望编译器在我们的数组声明中使用这一const object ,并且在其他需要用到常量表达式constant expression )的场合中(那可能会跨文件)也能够使用。

基于308个网页-相关网页

  constexpr

...引用)的场合,才考虑使用右值引用+移动构造方案。其它情况下,智能指针或代理类通常是更好的选择。 常量表达式constexpr) 说明 constexpr 主要用于修饰函数返回值,表明该函数的返回值是编译时已知的,意即:此函数内仅包含一条形如“return 常量表达式...

基于42个网页-相关网页

  compile-time constant expression

答案可以在编译期常量表达式(compile-time constant expression)[JLS 15.28]的精确定义中找到。它的定义太长了,就不在这里写出来了,但是理解这个程序的行为的关键是null不是一个编译期常量表达...

基于12个网页-相关网页

  const expression

常量表达式const expression)是指值不会改变并且在编译过程就能得到计算结果的表达式。

基于10个网页-相关网页

短语

要求常量表达式 Constant expression required ; Constant expression expected

需要常量表达式 Constant expression required

隐式常量表达式转换 Implicit Constant Expression Conversions

请求常量表达式 Constant expression required

整型常量表达式 integral constant expression

常量标量表达式 Constant scalar expressions

可为常量或表达式 frame

 更多收起网络短语

有道翻译

常量表达式

Constant expression

以上为机器翻译结果,长、整句建议使用 人工翻译

双语例句

  • 怎样常量表达式进行评估

    How is this constant expression evaluated?

    youdao

  • 所以我们使用常量表达式

    So we have to use an integral constant expression.

    youdao

  • 例如枚举成员初始化式必须常量表达式

    For example, the initializer of an enumerator must be a constant expression.

    youdao

更多双语例句
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定