Writing Functors with Boost.Lambda2

Veröffentlicht am: 11 Januar 2023
auf dem Kanal: 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-...


Auf dieser Seite können Sie das Online-Video Writing Functors with Boost.Lambda2 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Utah Cpp Programmers 11 Januar 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,019 Mal angesehen und es wurde von 12 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!