Top "Operator-overloading" questions

Operator overloading is a feature of a programming language that allows custom implementations for operators depending on the types of the operands involved.

friend in operator == or << when should i use it?

I feel I have a bit of a hole in my understanding of the friend keyword. I have a class, …

c++ operator-overloading friend
Redefinition of operator << in C++

I know this question might be stupid, but i am new in C++ and i have a lot of problems …

c++ operator-overloading redefine
Overloading comparison operators for different types in c++

I need to be able to compare one of my classes (which contains a lot more than an integer) to …

c++ operator-overloading comparison-operators
How Do I define a Double Brackets/Double Iterator Operator, Similar to Vector of Vectors'?

I'm porting code that uses a very large array of floats, which may trigger malloc failures from c to c++. …

c++ vector iterator operator-overloading deque
How to overload the indirection operator? (C++)

I'm trying to create an iterator class as a member-class for a list class, and am trying to overload the …

c++ operator-overloading indirection
Overloaded 'operator++' must be a unary or binary operator (has 3 parameters)

I have a header file and a .cpp file. I am trying to implement a prefix and postfix operator overload …

c++ xcode operator-overloading post-increment pre-increment
Are free operator->* overloads evil?

I was perusing section 13.5 after refuting the notion that built-in operators do not participate in overload resolution, and noticed that …

c++ operator-overloading
overloading operator<< to output object members without using friend function

I am refreshing cpp after a long gap, trying to understand the operator overloading methods. I tried to overload "operator&…

c++ operator-overloading friend-function
overloaded operator << on ofstream concatenation problems

I have the following code: struct simple { simple (int a1, int a2) : member1(a1), member2(a2) {} int member1; int member2; }; …

c++ operator-overloading concatenation ofstream