In C++ we can overload some operators like +, -, , -> etc. But we cannot overload any operators in it. Some of the operators cannot be overloaded. These operators are like below
These operators cannot be overloaded because if we overload them it will make serious programming issues.
For an example the sizeof operator returns the size of the object or datatype as an operand. This is evaluated by the compiler. It cannot be evaluated during runtime. So we cannot overload it.