Chapter 16. Advanced Uses of Operator Overloading

Topics in this Chapter

I already discussed C++ overloaded operators in Chapters 10, "Operator Functions: Another Good Idea," (numeric classes) and 11, "Constructors and Destructors: Potential Trouble," (nonnumeric classes). In this chapter, I am going to extend this coverage and explain more exotic uses of operator overloading in C++. For some, any operator overloading is already quite eccentric. For these programmers, what you will learn in this chapter might appear remote from what most C++ programmers do every day.

This might be true—you do not write advanced ...

Get Core C++ A Software Engineering Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.