Chapter 4
Generic Programming and Templates
Section 8
Writing Easy to Read Templates
We have seen many features that we can use to write powerful templates that allow us to create high-level abstractions over the specific problems we face. But, as usual, code is more often read than written, and we should optimize for readability: the code should express the intentions of the code more than what operation is achieved. Template code can sometimes make that hard to do, but there are a few patterns that can help.