home *** CD-ROM | disk | FTP | other *** search
- You can overload a prefix unary operator by declaring a nonmember
- function that takes a single argument, or a nonstatic member
- function that takes no arguments. Overloaded operators usually
- require access to member data. Therefore, you usually declare
- nonmember operators to be friends of the class.
-