Unary Operators is an actively used design pattern. Operators with arity 1.

?Years Old

Languages with Unary Operators include cpp

Example from cpp:

int count = 2;
count++;
++count;
count--;
--count;
&count; // address
*count; // indirection
+count; // Positive
-count; // negative
~count; // one's complement
!x; // logical negation
sizeof count;
sizeof(int);
(float)count;

Last updated June 22nd, 2020

Edit Unary Operators on GitHub