Key Takeaways

Get an overview of the major points discussed in the previous lessons.

In this chapter, we discovered three ways to use concepts with classes. We learned that concepts can be used to constrain the types that our template classes can accept. To do that, we can use the requires clause and constrained template parameters. In addition, we saw how to use the trailing requires clause to constrain only certain methods of a class template. Here’s a list of some important takeaways from this chapter:

Get hands-on with 1200+ tech skills courses.