...

/

Solution: Concept for a Container

Solution: Concept for a Container

Get an overview of how to write a concept for a container.

Solution

In the parameter list of the requires expression, we list all the different elements that we need: a container, an item, and an index. Then, in the body of the requires expression, we write function calls that we expect to be compilable.

Access this course and 1400+ top-rated courses and projects.