| 27 | // Template for functions to return the larger of two values |
| 28 | template <typename T> |
| 29 | T larger(T a, T b) |
| 30 | { |
| 31 | static size_t counter{}; |
| 32 | std::cout << "This instantation has now been called " << ++counter << " time(s)\n"; |
| 33 | return a > b? a : b; |
| 34 | } |