Concepts in C++20
Concepts allow us to add requirements to template arguments. There are different types of constraints, e.g. Syntactic requirement – e.g. what operations need to be defined. Semantic requirements – i.e. what behaviour is required of the operations. For example, an iterator needs to have begin() and end() operations and also needs to implement the increment … Read more