阅读背景:

Common operators to overload-c++运算符重载的标准语法(全)

来源:互联网 

Common operators to overload

Most of the work in overloading operators is boiler-plate code. That is little wonder, since operators are merely syntactic sugar, their actual work could be done by (and often is forwarded to) plain functions. But it is important that you get this boiler-plate code right. If you fail, either your operator’s code won’t compile or your users’ code won’t compile or your users’ code will behave surprisingly.Most of the work




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: