The Requires Clause

Learn how the <requires> clause can be used to define constraints for the class templates.

We'll cover the following...

How to write a requires clause

We can use the requires clause to define constraints on a class template. All we have to do is write a class template and after the template parameter list, we add the ...