Assigning C Function Pointers to Lambdas
Learn about the assignment of C function pointers to lambdas as well as different lambdas and their relations.
We'll cover the following
Lambdas as function pointers
Lambdas without captures can be implicitly converted to function pointers. Let's say we are using a C library, or an older C++ library, that uses a callback function as a parameter, like this:
Get hands-on with 1400+ tech skills courses.