April 2022
Intermediate to advanced
1012 pages
38h 1m
English
Objectives
In this chapter, you’ll:
Use built-in string class overloaded operators.
Use operator overloading to help you craft valuable classes.
Understand the special member functions and when to implement them for custom types.
Understand when objects should be moved vs. copied.
Use rvalue references and move semantics to eliminate unnecessary copies of objects that are going out of scope, improving program performance.
Understand why you should avoid dynamic memory management with operators new and delete.
Manage dynamic memory automatically with smart pointers.
Craft a polished MyArray class that defines the five special member functions to support copy and move semantics, ...