operator overloading

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)