...

/

Learning More Ways to Specify Constraints

Learning More Ways to Specify Constraints

Explore other ways to define constraints in C++20 in this lesson.

Requires clause vs. requires expression

In this section, we’ve discussed requires clauses and requires expressions. Although both are introduced with the new requires keyword, they are different things and should be fully understood:

    ...