First-class Functions in C++: Defining & Using First-class Functions

C++    |    Expert
  • 11 videos | 1h 9m
  • Includes Assessment
  • Earns a Badge
Rating 4.5 of 6 users Rating 4.5 of 6 users (6)
While C++ is considered an object-oriented language, it provides support for functional programming, including support for first-class functions in three manners: function pointers, function objects, and lambdas. In this course, discover the complexity of C-style function pointers by creating them and invoking functions through them. Next, learn about the various features and uses of function pointers and how to accept functions as input arguments and return functions from a higher-order function. Finally, examine function objects (functors) and use them to overload the call operator, instantiate objects, and use the overloaded call operator. Upon completion, you'll be able to list the properties of C++ first-class functions, create function pointers, return functions from a higher-order function, and define and invoke a functor.

WHAT YOU WILL LEARN

  • Discover the key concepts covered in this course
    Define function objects and function pointers
    Create function pointers and invoke functions through them
    Invoke various functions through function pointers and identify the features and uses of function pointers
    Return functions from other functions
    Use and differentiate typedefs and type aliases
  • Pass and accept functions as input arguments
    Utilize templates with higher-order functions and type aliases
    Create and use function objects (functors)
    Use functors with templates
    Summarize the key concepts covered in this course

IN THIS COURSE

  • 1m 49s
  • 5m 38s
  • Locked
    3.  Creating Function Pointers
    7m 57s
  • Locked
    4.  Invoking Functions through Function Pointers
    8m 47s
  • Locked
    5.  Returning Functions from Other Functions
    7m 30s
  • Locked
    6.  Using Typedefs and Type Aliases
    5m 6s
  • Locked
    7.  Passing Functions in as Input Arguments
    6m 7s
  • Locked
    8.  Utilizing Templates with Higher-order Functions
    6m 34s
  • Locked
    9.  Creating and Using Functors
    6m 22s
  • Locked
    10.  Using Functors with Templates
    9m 29s
  • Locked
    11.  Course Summary
    3m 43s

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 5 users Rating 5.0 of 5 users (5)
Rating 4.4 of 89 users Rating 4.4 of 89 users (89)
Rating 4.4 of 11 users Rating 4.4 of 11 users (11)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.7 of 7 users Rating 4.7 of 7 users (7)
Rating 4.5 of 53 users Rating 4.5 of 53 users (53)
Rating 4.5 of 13 users Rating 4.5 of 13 users (13)