Skip to Content
The C++ Programming Language, 4th Edition
book

The C++ Programming Language, 4th Edition

by Bjarne Stroustrup
May 2013
Intermediate to advanced
1376 pages
47h 26m
English
Addison-Wesley Professional
Content preview from The C++ Programming Language, 4th Edition

23. Templates

Your quote here.

– B. Stroustrup

Introduction and Overview

A Simple String Template

Defining a Template; Template Instantiation

Type Checking

Type Equivalence; Error Detection

Class Template Members

Data Members; Member Functions; Member Type Aliases; static Members; Member Types; Member Templates; Friends

Function Templates

Function Template Arguments; Function Template Argument Deduction; Function Template Overloading

Template Aliases

Source Code Organization

Linkage

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming: Principles and Practice Using C++, 3rd Edition

Programming: Principles and Practice Using C++, 3rd Edition

Bjarne Stroustrup

Publisher Resources

ISBN: 9780133522884Purchase Link