Operator Overloading in C++

 

Here are all the operators that can be overloaded:

 

+

-

*

/

%

^

&

|

~

!

=

<

>

+=

-=

*=

/=

%=

^=

&=

|=

<<

>>

>>=

<<=

==

!=

<=

>=

&&

||

++

--

->*

,

->

[]

()

new

delete

 

 

Here are all the operators that can’t be overloaded:

 

.

.*

::

?:

size0f