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 course
    create function templates with multiple values
    create function templates which accept the return type of functions
    use decl_type and contrast it with auto
  • assign default values to template parameters and fix type mismatches
    except template parameters that are not of types
    summarize the key concepts covered in this course

IN THIS COURSE

  • 1m 44s
  • 7m 56s
  • Locked
    3.  Specifying Function Return Types through Templates
    6m 42s
  • Locked
    4.  Using decl_type
    7m 5s
  • Locked
    5.  Using Default Values in Template Parameters
    6m 47s
  • Locked
    6.  Using Non-type Template Parameters
    6m 35s
  • Locked
    7.  Course Summary
    2m 57s

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.