Challenge: Concept for a Container

Let’s try to implement a concept ourselves!

We'll cover the following

Problem

Write a concept for a container that has the following functions:

  • Insert: This should take an instance of the contained type and return void.
  • Remove: This takes the index and returns the contained type.

Try it yourself first. If you have trouble getting to the solution, you can always press the “Show Solution” button to see how the problem can be solved. We’ll go through the in-depth solution in the next lesson.

Good luck!

Get hands-on with 1200+ tech skills courses.