Lots of standard algorithms require some sort of 'functor' or 'function object' in order to apply predicates and transforming functions to values. This makes the algorithms generic, but requires you to write your own function object classes or lambda functions, which can get a little noisy in the syntax.
Boost.Lambda2 is a library that allows you write lambda functions that look like simple expressions with placeholders for the arguments.
This month, Richard Thomson will give us a breakdown of the Lambda2 library in Boost that makes writing function objects simple and readable. We'll see how to use them with common standard algorithms before looking a little more deeply into how this library is implemented.
Boost.Lambda2 docs: https://boost.org/libs/lambda2
Boost.Lambda2 github: https://github.com/boostorg/lambda2
Past topics: https://utahcpp.wordpress.com/past-me...
Future topics: https://utahcpp.wordpress.com/future-...
En esta página del sitio puede ver el video en línea Writing Functors with Boost.Lambda2 de Duración hora minuto segunda en buena calidad , que subió el usuario Utah Cpp Programmers 11 enero 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 1,019 veces y le gustó 12 a los espectadores. Disfruta viendo!