Where can one find a list of the function signatures for all operator overloads?
Wikipedia: Operators in C and C++.
ISO/IEC 14882:2003 §13.5, Overloaded Operators
It's not quite as useful as the Wikipedia list if you don't have a copy of the document, but it has the benefit of being authoritative.
You can also consult the latest draft of C++0x, N3126, §13.5, Overloaded Operators.
You can find them on cppreference, divided by operator cagetory:
a=b, a+=b, a-=b, a*=b, a/=b, a%=b, a&=b, a|=b, a^=b, a<<=b, a>>=b
++a, --a, a++, a--
+a, -a, a+b, a-b, a*b, a/b, a%b, ~a, a&b, a|b, a^b, a<<b, a>>b
a||b, a&&b, !a
a==b, a!=b, a<b, a>b, a<=b, a>=b, a<=>b(C++20)a[b], *a, &a, a->b, a.b, a->*b, a.*b
a(...), a,b, a?b:c
I suggest to check the Canonical implementations in the operator overloading page.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With