C++: Function Templates with Multiple Parameters & Non-type Parameters
C++ 20 | Expert
- 7 videos | 39m 44s
- Includes Assessment
- Earns a Badge
Template programming is very powerful and can also get quite complicated. In this course you will tackle some of those complications by using multi-value function templates. Learn how decl_type and auto keywords can be used to allow type inference on the return type of a function. Work with default arguments for template parameters and see how this can lead to mismatches if done carelessly. Finally, define and specify non-type template parameters and explore the relationship between the values of those parameters and the compiler.
WHAT YOU WILL LEARN
discover the key concepts covered in this coursecreate function templates with multiple valuescreate function templates which accept the return type of functionsuse decl_type and contrast it with auto
assign default values to template parameters and fix type mismatchesexcept template parameters that are not of typessummarize the key concepts covered in this course
IN THIS COURSE
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.