next up previous
Next: Method/function operators Up: class and struct Previous: How do I specify

How do I redefined arithmetic operators?

There are two ways of redefining an operator: with a method or with a function (usually friend function, for most operators need to access the private members of a class). Some operators can only be redefined with a method.



Subsections

Alexis Angelidis (PhD) 2005-01-11