What is the translation of " CONSTEXPR " in Chinese?

Examples of using Constexpr in English and their translations into Chinese

{-}
  • Political category close
  • Ecclesiastic category close
  • Programming category close
Constexpr functions by example.
Constexpr函数举例】.
It can call only other constexpr functions.
只能调用其它constexpr函数.
Constexpr is part of an object's or function's interface.
Constexpr是对象接口或函数接口的一部分。
When should you use constexpr capability in C++11?
什么时候应该在C11中使用constexpr能力??
In C++11 constexpr function must compose only from one return statement.
C++11constexpr函数必须把一切放在单条return语句中.
This definition is deprecated for constexpr data members(since C++17).
此定义对于constexpr数据成员已弃用(C++17起)。
Every constructor involved in initializing non-static data members andbase class sub-objects shall be a constexpr constructor;
每个被选用于初始化非静态成员和基类的构造函数必须是constexpr构造函数。
C++14 conformance improvements: constexpr and aggregate initialization.
C++14一致性改进:constexpr和aggregate初始化.
If a function may have to be evaluated at compile time,declare it constexpr;§1.6;[CG: F.4].
如果一个函数可能需要在编译时求值,那么将它声明为constexpr;1.6节;[CG:F.4]。
If a static data member is declared constexpr, it is implicitly inline and does not need to be redeclared at namespace scope.
若静态数据成员被声明为constexpr,则它隐含为inline且不必在命名空间作用域重声明。
Such conditional operator was commonly used in C++11 constexpr programming prior to C++14.
这种条件运算符常用于C++14之前的C++11constexpr编程。
However, if the declaration uses constexpr or inline(since C++17) specifier, the member must be declared to have complete type.
然而,若声明使用了constexpr或inline(C++17起)说明符,则必须声明该成员为具有完整类型。
Such conditional operator was commonly used in C++11 constexpr programming prior to C++14.
这种条件运算符在C++14之前的C++11constexpr开发中很常用。
InfoWorld: With the addition of constexpr lambdas in C++ 17, does C++ continue to become more of a functional programming language?
InfoWorld:随着constexprlambdas进入C++17,C++是不是朝着函数式编程语言更进了一步。?
Every constructor involved in initializing non-static data members andbase class sub-objects shall be a constexpr constructor;
每个被选作初始化非static成员和基类的构造函数必须是constexpr构造函数。
The above expression states that during the compilation constexpr must be true, but it does not affect static_assert.
这个例子显式的说明了,constexpr必须在编译中被判断为真,但是对于static_assert没有影响。
Every constructor involved in initializing non-static data members andbase class sub-objects shall be a constexpr constructor;
对于非委托构造函数,选择初始化非静态数据成员和基类子对象的每个构造函数都应该是一个constexpr构造函数;
This constant expression mayonly call other functions defined as constexpr, or it may use other constant expression data variables.
这些常数表示式只能够调用其他被定义为constexpr的函数,或是其他常数表示式的数据变量。
Copying constexpr constructed types should also be defined as a constexpr, in order to allow them to be returned by value from a constexpr function.
由常量表达式拷贝构造的类型也必须被定义为constexpr,以使它们能从常量表达式函数中作为值被返回。
Currently, implicitly-defined constructors aren't automatically specified as constexpr even when they would fulfill all the requirements to be so:.
当前,隐式定义的构造函数不能自动指定为constexpr,即使构造函数已经满足所有必要条件,因此:.
C++0x will introduce the keyword constexpr, which allows the user to guarantee that a function or object constructor is a compile-time constant.
C++11引入了关键字constexpr,它使用户可以确保函数或对象构造函数是编译时不变。
Also, C++11 stated that allnon-static member functions that were declared constexpr were also implicitly declared const, with respect to this.
此外,C++11指出,所有被声明为constexpr的非静态成员函数也隐含声明为const(即函数不能修改*this的值)。
Copying constexpr constructed types should also be defined as a constexpr, in order to allow them to be returned by value from a constexpr function.
复制constexpr建构起来的类型也应该被定义为constexpr,这样可以让他们从常数表示式的函数以值传回。
The proposal explicitly states, that the constexpr must be true to be included during compilation, but this has no effect on static_assert.
这个例子显式的说明了,constexpr必须在编译中被判断为真,但是对于static_assert没有影响。
Copying constexpr constructed types should also be defined as a constexpr, in order to allow them to be returned by value from a constexpr function.
拥有constexpr构造函数的类型的复制构造函数通常也应该被定义为constexpr,以便该类型的对象以值传递的方式从constexpr函数回返。
Also interesting: the feature is written if constexpr, but the standard wording still names it constexpr if, but defines it as if constexpr.
还有一个有趣的地方:这个特征写为ifconstexpr,但是标准的拼写仍然将其命名为constexprif,但是将它定义为了ifconstexpr。
The copy constructor for a type with any constexpr constructors should usually also be defined as a constexpr constructor, to allow objects of the type to be returned by value from a constexpr function.
拥有constexpr构造函数的类型的复制构造函数通常也應該被定義為constexpr,以便该类型的对象以值传递的方式从constexpr函数返回。
C++0x will introduce the keyword constexpr, which allows the user to guarantee that a function or object constructor is a compile-time constant.
C++0x将引入constexpr关键字,此关键字将使用户能保证某个函数或构造器在编译期产生常量。
Literal types are the types of constexpr variables and they can be constructed, manipulated, and returned from constexpr functions.
字面类型是constexpr变量所拥有的类型,且它们能通过constexpr函数构造、操作及自之返回。
Results: 29, Time: 0.0216

Top dictionary queries

English - Chinese