来自专业的译者、企业、网页和免费的翻译库。
overloading means assigning a different meaning to this operator, and is usually used to assign a function call to an operator. whenever this operator would be used on such an object in a program, this function would be called with the lvalue and rvalue as parameters. equipped with that information, it can perform the operation it intends the "=" operator to have (usually an extended form of copying).
if you define an object in such a language, you have the possibility of overloading the "=" operator, which is usually responsible for assigning the contents of the lvalue (result of the evaluation of the left side of the operator) to the rvalue (same for the right side).
最后更新: 2011-10-24
使用频率: 1
质量:
警告:包含不可见的HTML格式