- Exercise

In this exercise, you will replace the auto keyword with the corresponding types.

We'll cover the following

Task

Make the type deduction of auto explicit and replace as many usages of auto in the code with their explicit types.

Line 17 cannot be converted, because the lambda expression has a unique but not a nearer specified type.

Note: Don’t forget the necessary headers.

Get hands-on with 1000+ tech skills courses.