Writing Functors with Boost.Lambda2

Publicado em: 11 Janeiro 2023
no canal de: Utah Cpp Programmers
1,019
12

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-...


Nesta página do site você pode assistir ao vídeo on-line Writing Functors with Boost.Lambda2 duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Utah Cpp Programmers 11 Janeiro 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,019 vezes e gostou 12 espectadores. Boa visualização!