Hour 23. Creating Templates
What You’ll Learn in This Hour:
What templates are and how to use them
Why templates are a better alternative to macros
How to create class templates
What Are Templates?
In Hour 19, “Storing Information in Linked Lists,” you learned how to make a linked list. Your linked list was encapsulated: The list knew only about its head pointer; the head pointer delegated its work to internal pointers, and so forth.
One design ...
Get Sams Teach Yourself C++ in 24 Hours, Sixth Edition 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.