operator overloading
Customizes the C++ operators for operands of user-defined types.
Syntax
Overloaded operators are functions with special function names:
operator op | (1) | |
operator type | (2) | |
operator new operator new [] | (3) | |
operator delete operator delete [] | (4) | |
登录查看完整内容