Skip to Content
Introduction to C++ Templates
on-demand course

Introduction to C++ Templates

with Julian Templeman
April 2017
Beginner
27m
English
Infinite Skills

Overview

Templates are a fundamental feature of modern C++ programming. Designed for the beginner to intermediate level C++ programmer, this course explains why templates are important and how to use them. Expert programmer, Julian Templeman, starts with a description of the concept behind templates and shows you how they solve the problem of writing functions and classes that differ only in their parameter types.

He then demonstrates how you use template functions to create functions that will work with a variety of parameter types and how to use them in code. Then, he shows you how to create and use template classes, parameterized types that are commonly used for containers such as vector and list. The course finishes off with a discussion of how the compiler processes templates and what this means in terms of how code is compiled and linked.

  • Explore the importance and role of templates in C++ programming
  • Understand how to create and use function and class templates
  • Gain the ability to create highly efficient type-safe code
  • Master the techniques required for effective C++11 and C++14 programming
Julian Templeman runs the London UK based consulting company Templeman Consulting. He has worked in software development for 40 years, written code in over 20 languages, and has worked with C++ for over 20 years. A professional consultant, trainer, and writer, Julian has authored multiple programming books and videos, including the O'Reilly title "Practical Scala for Java Developers".
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.

Watch now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Template Metaprogramming with C++

Template Metaprogramming with C++

Marius Bancila
C++ Templates: The Complete Guide, 2nd Edition

C++ Templates: The Complete Guide, 2nd Edition

David Vandevoorde, Nicolai M. Josuttis, Douglas Gregor
C++ Programming

C++ Programming

Yuan Dong, Fang Yang, Li Zheng, Tsinghua University Tsinghua University Press

Publisher Resources

ISBN: 9781491988688