Lab 6: Map function for Linked Lists

Due March 11

Many languages include a function that will apply a different function to each item of a list. It's often called "map", but in C++, there's also an STL data type called map. So we'll call it "apply_to_all".
Add a method called apply_to_all to the linked list class demo better_linkedlist.h from the class examples. There's a test file for this lab, called lab6test.cpp, which you can use to test your function (and also have an example of what it does). apply_to_all should take only one parameter, which will be a function that should be applied to each item in the list. This function should be given a mutable reference ot the list item, and thus can make changes to it. It's easiest to declare it as a template function.
If you took CS211 last semester, this is similar to lab 12, but with within a linked list ADT. Here's an example from CS211.