Solution: Concept for a Container

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

We'll cover the following

Solution

Let’s add typename Container::size_type;, which requires that the size_type within the container names a type.

Get hands-on with 1200+ tech skills courses.