Рет қаралды 9,684
Type Erasure, a C++ specific design pattern, allows unrelated types to all be used by a single type. This video discusses what this pattern looks like, how it works, and some of the areas in the standard library where you will find it leveraged.
A special thanks to Nevin :-) Liber for teaching me everything I know on the subject.
A note about the video: I should have decayed the type in the assignment operator, or at least removed the reference. See pinned comment, below.