23. Templates
Your quote here.
– B. Stroustrup
Defining a Template; Template Instantiation
Type Equivalence; Error Detection
Data Members; Member Functions; Member Type Aliases; static Members; Member Types; Member Templates; Friends
Function Template Arguments; Function Template Argument Deduction; Function Template Overloading
• Advice
23.1. Introduction and Overview
Templates provide direct support for generic programming (§3.4) in the form of programming using types as parameters. The C++ template mechanism allows a type or a value to be a parameter in the definition of ...
Get The C++ Programming Language, 4th 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.