Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Learning C++ Templates [closed]

Tags:

c++

templates

Can anyone recommend any good resources for learning C++ Templates?

Many thanks.

like image 428
Dynite Avatar asked Sep 30 '08 09:09

Dynite


4 Answers

I've found cplusplus.com to be helpful on numerous occasions. Looks like they've got a pretty good intro to templates.

If its an actual book you're looking for, Effective C++ is a classic with a great section on templates.

like image 199
Gordon Wilson Avatar answered Nov 07 '22 16:11

Gordon Wilson


I recomned that you get C++ Templates - The Complete Guide it's an excellent resource and reference.

like image 31
Torbjörn Gyllebring Avatar answered Nov 07 '22 18:11

Torbjörn Gyllebring


This is a more advanced, but very useful, book on templates and template use.

Modern C++ Design

like image 5
workmad3 Avatar answered Nov 07 '22 17:11

workmad3


Bruce Eckel's Thinking in C++ is how I learned about templates. The first volume has an introductory chapter and the second volume has an in-depth chapter on templates.

There's Bjarne Stroustrop's The C++ Programming Language which has a good chapter on them. And The C++ Standard Library: A Tutorial and Reference which is about the standard library, but would definitely help you get a better understanding of how templates could be used in the real world. .

like image 4
Firas Assaad Avatar answered Nov 07 '22 16:11

Firas Assaad