January 2020
Intermediate to advanced
454 pages
11h 25m
English
In this recipe, we will learn how to erase types using inheritance. When type erasing is discussed, inheritance is not usually considered, but in reality, it is the most common form of type erasing used in C++. This recipe is important because it will discuss what type erasing is and why it is so useful in everyday applications without simply removing type information—a practice that is common in C.