⚡ Build the skills to land top-paying quant jobs. Offer ends in 23d 14h 03m 06s23 days 14 hours 3 minutes 6 seconds.
⚡ Build the skills to land top-paying quant jobs. Offer ends in 23d 14h 03m 06s23 days 14 hours 3 minutes 6 seconds.

Sign in to watch this lesson
Templates and Generic Programming · 4:04
A class template turns a type into a parameter: one recipe, and the compiler stamps out a real class for every type you use. We instantiate Vector for char, string and list, find the separate constructors in the object file, put values in template parameters to avoid the heap, and catch the string-literal trap in class template argument deduction.