for_each

As the name suggests, this method picks up each value in our container and performs the desired action.

We'll cover the following...

std::for_each applies a unary callable to each element of its range. ...