Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4
Not exactly sure what you're attempting to ask. Unary operators perform their function on a single operand. For example, !x is a boolean not operator that reverses the true or false of x. If x was some class, you would overload not with: bool operator !() { /*expression returning not x*/ }
8th Aug 2018, 4:29 PM
John Wells
John Wells - avatar