C++20 introduces concepts as one of its major features. Along with concepts, C++20 has new iterators based on concepts. Although the iterators discussed in this chapter up to here are now considered legacy features, lots of lines of code have already been written using them. That's why we introduced them first before continuing with the new iterator concepts. Now, let's find out what concepts are and how to use them.
Concepts and iterators
Understanding concepts
Abstraction is essential in computer programming. We introduced classes in Chapter 3, Details of Object-Oriented Programming, as a way to represent data and operations as an abstract entity. After that, in Chapter 4, Understanding and Designing Templates...