7
Concepts and Generic Programming
Programming: you have to start with interesting algorithms.
– Alex Stepanov
7.1 Introduction
What are templates for? In other words, what programming techniques are effective when you use templates? Templates offer:
The ability to pass types (as well as values and templates) as arguments without loss of information. This implies excellent opportunities for inlining, of which current implementations take great advantage.
Opportunities to weave together ...
Get A Tour of C++, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.