参考资料
- 《Programming -- Principles and Practice Using C++ (3rd Edition)》—— Bjarne Stroustrup
Concept
Templates with unconstrained parameters, template, hav e many useful properties, such as great flexibility and near-optimal performance. But they doesn’t precisely state what is expected of an argument type T.
We call a set of requirements on a set of template arguments a concept
.