First-class Functions in C++: Defining & Using First-class Functions
C++
| Expert
- 11 videos | 1h 9m
- Includes Assessment
- Earns a Badge
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 courseDefine function objects and function pointersCreate function pointers and invoke functions through themInvoke various functions through function pointers and identify the features and uses of function pointersReturn functions from other functionsUse and differentiate typedefs and type aliases
-
Pass and accept functions as input argumentsUtilize templates with higher-order functions and type aliasesCreate and use function objects (functors)Use functors with templatesSummarize the key concepts covered in this course
IN THIS COURSE
-
1m 49s
-
5m 38s
-
7m 57s
-
8m 47s
-
7m 30s
-
5m 6s
-
6m 7s
-
6m 34s
-
6m 22s
-
9m 29s
-
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.