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 4.2 of 111 users Rating 4.2 of 111 users (111)
Rating 4.3 of 8 users Rating 4.3 of 8 users (8)
Rating 4.3 of 6 users Rating 4.3 of 6 users (6)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 3.9 of 8 users Rating 3.9 of 8 users (8)
Rating 4.1 of 9 users Rating 4.1 of 9 users (9)
Rating 3.6 of 10 users Rating 3.6 of 10 users (10)