Beginning C++ Templates

Understand templates in depth & create generic algorithms and classes.
Rating: 4.7 out of 5 (1,035 ratings)
33,973 students
English
English [Auto]
Understand the syntax of function templates & classes
Understand the inner working of templates
Understand & implement generic algorithms and classes

Requirements

  • Basic knowledge of C++
  • Understand basic C++ constructs such as functions and classes

Description

Note:This is an excerpt from the course Beginning Modern C++. 

C++ templates are used for creating high performance algorithms and classes. Most of the high performance libraries, such as Active Template Library, Windows Template Library, Adaptive Communication Environment, etc, have been implemented through C++ templates.

Templates are a challenge for any novice C++ programmer. But, this course will help you understand the syntax of templates. It gently takes you through the basics and then slowly builds upon the advanced concepts such as specialization, variadic templates, etc. All the concepts are explained with examples in Visual Studio, but will work in any C++11 compiler.

Have fun learning templates!

Who this course is for:

  • C++ programmers who want to understand templates

Course content

2 sections17 lectures1h 17m total length
  • Introduction
    00:50
  • Prerequisites
    00:21
  • Source Code
    00:02
  • Introduction to Templates
    07:48
  • Assignment I
    00:11
  • Template Argument Deduction & Instantiation
    06:27
  • Explicit Specialization
    05:54
  • Non-type Template Arguments
    07:14
  • Assignment II
    00:11
  • Variadic Templates - Part I
    09:47
  • Variadic Templates - Part II
    04:50

Instructor

Trainer, developer & founder at Poash Technologies
Umar Lone
  • 4.5 Instructor Rating
  • 5,405 Reviews
  • 55,031 Students
  • 7 Courses

Civil engineer who found his calling in software development. Never worked as a Civil engineer, jumped at the first chance and started teaching C++ & Visual C++ 15 years ago. Currently, trains software professionals in various software companies in different technologies, such as Modern C++, Advanced C++, STL, Design Patterns, Android, Unity, Linux, etc. Very passionate about teaching and has trained more than 20,000 software professionals in a teaching career spanning more than 17 years. An avid gamer, currently trying his hand with game development in Unity & Unreal. Has a few Android applications to his credit, including one on Design Patterns.

Only thing he likes more than C++ is Modern C++.