A class demonstrating functions with trailing requires clauses. More...
| Header: | #include <TrailingRequiresExample> |
Trailing requires clauses appear after the function declaration, rather than after the template parameter list.
Combines a and b with both template-head and trailing requires.
This demonstrates a function with requires clauses in both positions, which is rare but valid C++20 syntax. Both constraints must be satisfied.
Processes value with a trailing requires clause.
The trailing requires clause appears after the function signature, which is an alternative syntax to placing it after the template parameter list.
Transforms input using trailing constraint.
This demonstrates that trailing requires clauses work with any constraint expression.