Advertisement

Class Templates

  • Ivor Horton
  • Peter Van Weert
Chapter

Abstract

Class templates are a powerful mechanism for generating new class types automatically. A significant portion of the C++ Standard Library is built entirely on the ability to define templates. Both function and class templates are used extensively throughout the Library to provide versatile, generic utilities, algorithms, and data structures.

Copyright information

© Ivor Horton and Peter Van Weert 2018

Authors and Affiliations

  • Ivor Horton
    • 1
  • Peter Van Weert
    • 2
  1. 1.Stratford-upon-AvonUK
  2. 2.Kessel-LoBelgium

Personalised recommendations