操作符重载
- 与 操作符重载 相关的网络例句 [注:此内容来源于网络,仅供参考]
-
When we use an overloaded operator, it has the same precedence and associativity as is defined for the built-in version of the operator.
重载的操作符与该操作符的内置类型版本有相同的优先级和结合性。
-
Before we can define the overloaded increment and decrement operators for CheckedPtr, we must think about one more thing.
在为类定义重载的自增操作符和自减操作符之前,还必须考虑另一件事情。
-
Most overloaded operators may be defined as ordinary nonmember functions or as class member functions.
大多数重载操作符可以定义为普通非成员函数或类的成员函数。
-
When designing the overloaded operators for a class, we must choose whether to make each operator a class member or an ordinary nonmember function.
为类设计重载操作符的时候,必须选择是将操作符设置为类成员还是普通非成员函数。
-
When we use an overloaded operator, the call does not tell us anything about the scope of the operator function that is being used. Therefore, both member and nonmember versions must be considered.
使用重载操作符是时,调用本身不会告诉我们与使用的操作符函数作用域相关的任何事情,因此,成员和非成员版本都必须考虑。
-
To get operator overloading to kick in, at least one operand must be a user-defined type.
要触发操作符的重载,必须至少有一个操作数是用户自定义类型。
-
Object of a class that defines an overloaded call operator.
定义了重载调用操作符的类的对象。
-
The CLS standard does not take a pro or con stance on the concept of operator overloading.
CLS标准对于操作符重载没有明确的支持或者反对。
-
We'll see in Chapter 14 how to define overloaded versions of operators.
我们将在第十四章中学习如何重载不同的操作符版本。
-
Because vector overloads operator , you can use the notation as if you were using a built-in two-dimensional array
因为容器重载了操作符,所以你可以用来操作就如同使用内置的二维数组。
- 推荐网络例句
-
The split between the two groups can hardly be papered over.
这两个团体间的分歧难以掩饰。
-
This approach not only encourages a greater number of responses, but minimizes the likelihood of stale groupthink.
这种做法不仅鼓励了更多的反应,而且减少跟风的可能性。
-
The new PS20 solar power tower collected sunlight through mirrors known as "heliostats" to produce steam that is converted into electricity by a turbine in Sanlucar la Mayor, Spain, Wednesday.
聚光:照片上是建在西班牙桑路卡拉马尤城的一座新型PS20塔式太阳能电站。被称为&日光反射装置&的镜子将太阳光反射到主塔,然后用聚集的热量产生蒸汽进而通过涡轮机转化为电力