O'Reilly logo

Just Enough C/C++ Programming by Guy W. Lecky-Thompson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Recap

This chapter looked at templates from a high-level point of view. It doesn’t cover every detail of every feature that template functions and classes are capable of, but you should now have a working knowledge of templates, after having read this chapter.

Although you can use templates, the best use is to apply the knowledge of using the STL to perform common programming tasks. The STL has containers, which are models of various storage facilities such as dynamic arrays that allow you to avoid constantly reinventing the wheel when you program.

The STL also has a collection of functions to apply to those containers, as well as some that can be used with single types. It also defines some iterators that you can use to move through the items ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required