Does anyone have a summary of boilerplate declarations for C++ operator overloading? A one page pdf would be nice. It would help us forgetful people having to stop and think about where to put our const and & and friend etc.
Does anyone have a summary of boilerplate declarations for C++ operator overloading? A one
Share
Wikipedia has a pretty nice entry:
http://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B
Complete with prototypes for both member and global functions, where applicable.