One final improvement I want to make on this dynamic class is to use member variables to access the fields, instead of the clunky get_ and set_ operators.
对这个动态类我想做的最后一个改进,是用成员变量访问字段,而不是用笨重的get _和set _操作符。
Unlike most other operators, the right operand of the dot (". ") operator is not an object or value; it is the name of a member.
与大多数其他操作符不同,点操作符(“。”)的右操作数不是对象或值,而是成员的名字。
The Sales item class offers a good example of member and nonmember binary operators .
中给出了成员和非成员二元操作符的良好例子。
The root member of a team of connected hash operators sharing a common hash function and partitioning strategy.
拥有相同哈希函数和分区策略的相互连接的哈希运算符组的根成员。
Most operators may be defined as member or nonmember functions.
大多数操作符可以定义为成员函数或非成员函数。
Most overloaded operators may be defined as ordinary nonmember functions or as class member functions.
大多数重载操作符可以定义为普通非成员函数或类的成员函数。
If a member operator was found, the compiler would previously not consider any namespace scope operators.
以前在找到成员运算符以后,编译器便不再考虑任何命名空间范围运算符。
If a member operator was found, the compiler would previously not consider any namespace scope operators.
以前在找到成员运算符以后,编译器便不再考虑任何命名空间范围运算符。
应用推荐