[over.unary] (original) (raw)
12 Overloading [over]
12.4 Overloaded operators [over.oper]
12.4.2 Unary operators [over.unary]
A prefix unary operator functionis a function named operator@for a prefix unary-operator @ ([expr.unary.op]) that is either a non-static member function ([class.mfct]) with no non-object parameters or a non-member function with one parameter.
If a member function is selected, the expression is interpreted as
Otherwise, if a non-member function is selected, the expression is interpreted as
[Note 2:
The unary and binary forms of the same operator have the same name.
Consequently, a unary operator can hide a binary operator from an enclosing scope, and vice versa.
— _end note_]