Writing Functors with Boost.Lambda2

Published: 11 January 2023
on channel: 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-...


On this page of the site you can watch the video online Writing Functors with Boost.Lambda2 with a duration of hours minute second in good quality, which was uploaded by the user Utah Cpp Programmers 11 January 2023, share the link with friends and acquaintances, this video has already been watched 1,019 times on youtube and it was liked by 12 viewers. Enjoy your viewing!