| |
| | C++ Annotations Version 4.4.1d |
 | | Now that we've covered the overloaded assignment operator in depth, and now that we've seen some examples of other overloaded operators as well (i.e., the insertion and extraction operators), let's take a look at some other interesting examples of operator overloading. |
 | | Furthermore, the array operator is interesting in that it both produces a value and accepts a value, when used, respectively, as a right-hand value and a left-hand value in expressions. |
 | | It visits all elements implied by an iterator-range, and performs a requested binary operation on a common element and each of the elements in the range, returning the accumulated result after visiting all elements. |
| www.oopweb.com /CPP/Documents/CPPAnnotations/Volume/cplusplus06.html (4608 words) |
|