Question: Problem 3 (2 points) We've discussed why it's so often the case that we write C++ templates in header files rather than source files, but

Problem 3 (2 points) We've discussed why it's so often the case that we write C++ templates in header files rather than source files, but let's be sure we have our minds wrapped around it; it's a critical part of being able to use templates in our designs. Suppose you've decided to write a function template that you expect to use in many different source files. Suppose, further, that you haven't followed the basic advice of writing C++ templates in header files, but have instead done the following: Written only a declaration of the function template in a header file x.hpp (i.e., all you wrote in the header file is template
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
