# C++ keyword: requires (since C++20)

From cppreference.com
< cpp‎ | keyword

### Usage

- specifies a constant expression on template parameters that evaluate a requirement (since C++20)

  - within such a requirement, introduces a nested requirement (since C++20)

- in a template declaration, specifies an associated constraint (since C++20)

Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/keyword/requires&oldid=149482"