Solution: Concept for a Container

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

We'll cover the following

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.

Get hands-on with 1400+ tech skills courses.