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
-
1.Course Overview1m 44sUP NEXT
-
2.Using Multi-value Function Templates7m 56s
-
3.Specifying Function Return Types through Templates6m 42s
-
4.Using decl_type7m 5s
-
5.Using Default Values in Template Parameters6m 47s
-
6.Using Non-type Template Parameters6m 35s
-
7.Course Summary2m 57s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform
Digital badges are yours to keep, forever.