Unary operators take one argument, perform some operation on it, and return the result. They are represented as static methods on the class that defines the type of their one operand. The following table shows the names that are defined.
Name | C++ Operator Symbol |
---|---|
op_Decrement |
-- |
op_Increment |
++ |
op_UnaryNegation |
- (unary) |
op_UnaryPlus |
+ (unary) |
op_LogicalNot |
! |
op_True |
Not defined |
op_False |
Not defined |
op_AddressOf |
& (unary) |
op_OnesComplement |
~ |
op_PointerDereference |
* (unary) |