C++: Using Function Templates
C++
| Expert
- 14 videos | 1h 47m 15s
- Includes Assessment
- Earns a Badge
Template metaprogramming is a powerful computer science technique used to achieve code reuse and some incredibly elegant architectures. In C++, template metaprogramming is achieved via template functions and classes that are instantiated at compile-time, not at runtime. In this course, learn how to define and instantiate function templates to effectively provide compile-time polymorphism. Then, explore how template definitions can make assumptions about the template parameters. Finally, learn how to define and use templates with pointer and reference types to provide function overloading.
WHAT YOU WILL LEARN
-
Discover the key concepts covered in this courseIllustrate the use of function and class templatesRecall the need for function templatesRecognizing the nuances of function templatesName templates to explicitly specify their typeDefine templated functions in header files and use templates for reference typesUse templated functions in .cpp files with header files
-
Invoke functions with templates on user-defined typesOutline how functions with function templates can mismanage pointersDefine template specializationsInvoke functions with specialized templatesOverload templated functionsOverload templated functions with pointer typesSummarize the key concepts covered in this course
IN THIS COURSE
-
1m 38s
-
10m 14s
-
8m 12s
-
5m 52s
-
10m 3s
-
7m 21s
-
10m 28s
-
7m 8s
-
10m 30s
-
7m 36s
-
10m 42s
-
8m 2s
-
7m 24s
-
2m 6s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.