Where can one find a list of the function signatures for all operator overloads?
+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
2010-10-04 20:04:02
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
2010-10-04 23:14:57
+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
2010-10-04 20:13:30
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
2010-10-04 20:26:28