The C++ Operators That Can Be Overloaded - C++ Class

C++ examples for Class:Operator Overload

Introduction

OperatortypeDescription
new N/A Allocates dynamic memory.
delete N/A Releases dynamic memory.
new[] N/A Allocates dynamic array.
delete[]N/A Releases a dynamic array.
+ Unary. Indicates a positive value.
+ Binary. Addition.
- Unary. Makes a value negative.
- Binary. Subtraction.
* Unary. Dereference.
* Binary. Multiplication.
/ Binary. Division.
% Binary. Modulus .
^ Binary. Bitwise Exclusive Or.
& Unary. Reference.
& Binary. Bitwise And.
| Binary. Bitwise Or.
~ Unary. Bitwise negation.
!Unary. Logical Not .
=Binary. Assignment .
<Binary. Less than.
<= Binary. Less than or equal to.
== Binary. Equal to.
!= Binary. Not equal to.
>= Binary. Greater than or equal to.
>Binary. Greater than.
&& Binary. Logical And.
|| Binary. Logical Or.
+= Binary. Add assign.
-= Binary. Subtract assign.
*= Binary. Multiply assign.
/= Binary. Divide assign.
%= Binary. Modulus assign.
&= Binary. Bitwise And assign.
|= Binary. Bitwise Or assign.
^= Binary. Bitwise Exclusive Or assign.
<< Binary. Left shift .
>> Binary. Right shift .
<<= Binary. Left shift assign.
>>= Binary. Right shift assign.
++ Unary. Increment .
-- Unary. Decrement .
[] Unary.Array item dereference.

Related Tutorials