• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1135
  • Last Modified:

Looking for C++ Templates Tutorial

I lead a daily seminar at work and am looking for a tutorial covering C++ templates.

The attendees range in skill level from junior to quite senior.  All have good grounding in C++ as an OO language and are ready start with template functions and classes.  I want to cover the basics before getting into subjects like template metaprogramming.

What tutorial suggestions have you?
3 Solutions
This one is basic, but very good :


A bit more advanced topics can be found here for example :

Avery nice one is http://www.codeproject.com/KB/cpp/templates_part1.aspx ("A Beginners guide to Templates - Part 1") and the ollowup at http://www.codeproject.com/KB/cpp/templates_part2.aspx ("A Beginners guide to Templates - Part 1"). Also from that size: http://www.codeproject.com/KB/cpp/template_hints.aspx ("Special notes for writing C++ templates"). A pretty good FAQ to help clear things up: http://www.comeaucomputing.com/techtalk/templates/ ("Tech Talk About C++ Templates - Comeau C++ Template FAQ").

And for a completely different alternative: http://www.iis.sinica.edu.tw/~kathy/vcstl/templates.htm ("C++ Templates Tutorial")
evilrixSenior Software Engineer (Avast)Commented:
Short tutorial. There are links from this one to other related topics.
josgoodAuthor Commented:
These are great answers from 3 people I have a lot of respect for.

*Thank You!*

I'll try to parcel the points fairly.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now