yo/advancedtemplates/concepts/predefined.yo
raw| 1 | In the previous section we covered defining concept requirements. When |
| 2 | specifying some of the requirements already available concepts were used, like |
| 3 | tt(std::same_as). The C2a standard provides some 30 predefined concepts which |
| 4 | may be used to specify type requirements, to specify conversion requirements, |
| 5 | and to specify more advanced requirements, sometimes accepting variadic |
| 6 | template parameters. The currently predefined concepts are covered in the |
| 7 | following subsections. |