C++: Using Function Templates

C++    |    Expert
  • 14 videos | 1h 47m 15s
  • Includes Assessment
  • Earns a Badge
Rating 4.7 of 7 users Rating 4.7 of 7 users (7)
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 course
    Illustrate the use of function and class templates
    Recall the need for function templates
    Recognizing the nuances of function templates
    Name templates to explicitly specify their type
    Define templated functions in header files and use templates for reference types
    Use templated functions in .cpp files with header files
  • Invoke functions with templates on user-defined types
    Outline how functions with function templates can mismanage pointers
    Define template specializations
    Invoke functions with specialized templates
    Overload templated functions
    Overload templated functions with pointer types
    Summarize the key concepts covered in this course

IN THIS COURSE

  • 1m 38s
  • 10m 14s
  • Locked
    3.  Defining the Use Case of Function Templates
    8m 12s
  • Locked
    4.  Recognizing the Finer Points of Function Templates
    5m 52s
  • Locked
    5.  Specifying Types for Templates
    10m 3s
  • Locked
    6.  Defining Templated Functions in Header Files
    7m 21s
  • Locked
    7.  Using Templated Functions in .cpp Files
    10m 28s
  • Locked
    8.  Using Function Templates with Custom Types
    7m 8s
  • Locked
    9.  Demonstrating Issues of Pointers with Templates
    10m 30s
  • Locked
    10.  Defining Template Specializations
    7m 36s
  • Locked
    11.  Using Template Specializations
    10m 42s
  • Locked
    12.  Overloading Templated Functions
    8m 2s
  • Locked
    13.  Overloading Templated Functions with Pointer Types
    7m 24s
  • Locked
    14.  Course Summary
    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.

YOU MIGHT ALSO LIKE

Rating 5.0 of 4 users Rating 5.0 of 4 users (4)
Rating 4.4 of 88 users Rating 4.4 of 88 users (88)
Rating 4.4 of 11 users Rating 4.4 of 11 users (11)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.1 of 9 users Rating 4.1 of 9 users (9)
Rating 4.5 of 11 users Rating 4.5 of 11 users (11)
Rating 3.9 of 46 users Rating 3.9 of 46 users (46)