August 2020
Beginner to intermediate
653 pages
16h 55m
English
One drawback to templates is that they are open to misuse, and accidentally using the wrong type as a template argument can confuse a compiler to such a degree that the error messages it issues require an advanced degree in C++ to decipher. Not to worry, though, because a template author can specify constraints on template arguments. This Exploration describes how to write constraints on your templates.