Skip to content

Glossary: C++ Beyond the Basics

Constraint

Also written: constraints, requires clause

A rule on a template parameter, written with a concept in the template line, a `requires` clause or `Concept auto`. A type that breaks it is rejected at the call.

Where the book teaches it

Related terms

ConceptRequires expression