Lab 12 Prelab Questions 1. You have used templates already in 202! Find code from any project 1-4 and paste a few lines below. 2. What does templated code do when it runs through the compiler? 3. What type of logic is good for templates? 4. Think of a function that would benefit by using templates. Write it. 5. Suppose I have a class called "Holder" which is a templated class, and lets say I am compiling it with my other file main.cpp like this: g++ -ansi -Wall main.cpp Holder.cpp , but it is not compiling, just from the information given above, why would it not compile? 6. A technique when writing templated classes to prevent the compiler from yelling and screaming at you is to ___________ to both the .cpp and the .h file. 7. Suppose my main.cpp is: #include "Holder.h" #include #using namespace std; int main() { Holder strHolder("I love c++"); Holder intHolder(7); cout << strHolder << endl; cout << intHolder << endl; return 0; } Write the Holder.h and Holder.cpp so that the program outputs: Holder has "I love c++" Holder has "7" 8. What do you think? Can templates save time? Or would you choose a different way?