views:

120

answers:

4

Where can one find a list of the function signatures for all operator overloads?

+8  A: 

Wikipedia: Operators in C and C++.

Potatoswatter
+4  A: 

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.

James McNellis
I am not sure how I got to it, and did not bookmark as I have my own copy, but the current standard is (was) available in a link through google code somewhere. You should be able to *google* for it.
David Rodríguez - dribeas
+1  A: 

In the book: "Thinking in C++, 2nd ed. Volume 1" by Bruce Eckel

You can read it online. The chapter you are looking for (chapter 12), can be found here, for example.

Maciej Hehl
Hmm, I went straight for the `operator->*` description (as that's the most likely place for errors) and sure enough he claims it can only be used to return functors, i.e. emulate pointer to member functions, not pointers to data members. For what it's worth… also, link to chapter: http://www.briceg.com/eckel/one/Chapter12.html
Potatoswatter
A: 

http://cplusplus.com <- the best for me

Kiril Kirov