Unary operators ++ -- + - ~

Vector data types can use some of the unary operators that are used with primitive data types, as outlined in the table below. These operators are not supported at global scope or for objects with static duration, and there is no constant folding. Each element in the vector has the operation applied to it.
Table 1. Unary operators
Operator Integer vector types Vector double Bool vector types
++ Yes Yes No
−− Yes Yes No
+ Yes Yes No
Yes (except unsigned vectors) Yes No
~ Yes No Yes
Note: Unary minus operator - on vector double will not cause IEEE exception.

For detailed information about unary operators, see Unary expressions in z/OS XL C/C++ Language Reference.