Syntactic Overview of Constraints and Concepts

Learn about concepts and constraints in coding, including function overloading and standard library concepts.

This section is a short introduction to constraints and concepts. We will not cover them completely in this course, but we will provide enough material to be productive.

Defining new concepts

Defining new concepts is straightforward with some help from the type traits that you are already familiar with. The following example defines the concept FloatingPoint using the keyword concept:

Get hands-on with 1200+ tech skills courses.