Contents

Chapter 28

Templates, One Function, Any Type

The angle brackets from chapter 10, explained at last.

Part 2

This chapter needs a key

Chapter 10 handed you std::vector<int> and asked you to take the angle brackets on trust. This is the promise being kept, and it turns out to explain the worst error messages in C++ as well.

You'll build: Write the code the compiler writes. Build a function that works on any type, then break it and read the error properly.

Part 1, chapters 0 to 21, is free and always will be.