Use Cases for Numbers
Let’s see a couple of real-world examples and areas where concepts are applicable.
We'll cover the following
Recap
So far in this course, we’ve seen what concepts are and why they were introduced in C++20. We’ve also discussed how concepts can be used with functions, classes, and templates. We’ve explored what concepts are shipped with the standard library as well as how to write our own. In the previous chapter, we saw how to use constraints with various types of concepts.
Using Numbers
We’ve been playing with a concept called Number
throughout the entire course. Let’s go over a quick reminder why:
Get hands-on with 1400+ tech skills courses.