Chapter 3

Building Original Templates

In This Chapter

arrow Determining when to create a template

arrow Understanding the elements of good template design

arrow Developing a basic math template

arrow Creating a structure template

arrow Defining a class template

arrow Using template specialization to your advantage

arrow Building a library of templates

arrow Using your custom built template libraries

C++ has been around for many years. Because of its longevity, C++ templates abound. In fact, it may seem that there is a template for every practical purpose. However, the templates that are available to the developer community through standardized and third-party resources usually reflect generalized needs. The individual company you ...

Get C++ All-in-One For Dummies, 3rd 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.