8
Concepts and Generic Programming
Programming: you have to start with interesting algorithms.
– Alex Stepanov
-
Use of Concepts; Concept-Based Overloading; Valid Code; Definition of Concepts; Concepts and auto; Concepts and Types
8.1 Introduction
What are templates for? In other words, what programming techniques are made effective by templates? Templates offer:
The ability to pass types (as well as values and templates) as arguments without loss of information. This implies great flexibility in what can be expressed and excellent opportunities for inlining, of which ...
Get A Tour of C++, 3rd 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.