A cookbook of C++ template ideas
Eighty-eight templates to use as is or modify to suit your
application.
In using these examples, you will learn a little more about how
templates can be used to improve your code.
It is intended for C++ programmers who would like to leverage
the power of templates in their code but would not consider
themselves fully familiar with them. You may have just used the
procedural and object-orientated features of C++ but never
ventured into the realm of templates. You may also be a C
programmer who is looking to move (willing or not) to using C++
and have heard a lot of scare stories about templates. You may
even be a recent convert to C++ but have been writing in a ‘C with
Classes’ style.
If so, this book is for you.
It will give you a kick-start into the realm of templates and avoid
some of the research and head-scratching I’ve had to go through
to get this far myself.
All of the templates in this book require the use of C++11 or greater.