C++: Function Templates with Multiple Parameters & Non-type Parameters

C++    |    Expert
  • 7 videos | 39m 44s
  • Includes Assessment
  • Earns a Badge
Rating 4.2 of 5 users Rating 4.2 of 5 users (5)
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.

YOU MIGHT ALSO LIKE

Rating 4.4 of 14 users Rating 4.4 of 14 users (14)
Rating 4.4 of 89 users Rating 4.4 of 89 users (89)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.3 of 6 users Rating 4.3 of 6 users (6)
Rating 4.4 of 11 users Rating 4.4 of 11 users (11)
Rating 4.5 of 11 users Rating 4.5 of 11 users (11)