CppCon 2020 has ended
Wednesday, September 16 • 09:00 - 10:00
Back To Basics: Lambda Expressions

Log in to save this to your schedule, view media, leave feedback and see who's attending!

Feedback form is now closed.
Lambdas were first introduced into C++ with the release of the groundbreaking C++11 standard. New capabilities like generic lambda expressions and generalized captures were added in C++14. A few years ago, with the release of C++17, additional new features like constexpr lambda expressions were added. With the new release of C++20 even more features will added, some of which may change the way lambda expressions are used.

There are several parts to a lambda expression and in order to use them efficiently and effectively, you really need to master all the pieces. Do you know when to capture by value or capture by reference? Can the lifetime of variables be altered by a lambda expression? What are the ways to pass a lambda expression and is this a good idea? Our goal is to answer these questions and talk about the constraints lifted with each new version of C++. Multiple examples will be shown to illustrate what can be done with lambda expressions.

During this presentation developers will have the opportunity to learn or review the fundamentals about lambda expressions by studying the terminology. Once someone clearly understands the difference between a function object, function pointer, functor, and anonymous function, we have a great foundation for lambda expressions. We will be able to use our knowledge to reason about generalized captures and what it really means to capture "this".

avatar for Barbara Geller

Barbara Geller

Co-Founder, CopperSpice
I am an independent consultant with over twenty-five years of experience as a programmer and software developer. I have worked with numerous smaller companies developing in-house applications. I have also designed and developed Windows applications for several vertical markets including... Read More →
avatar for Ansel Sermersheim

Ansel Sermersheim

Co-Founder, CopperSpice
I have been working as a programmer for nearly twenty years. My degree is in Computer Science from Cal Poly San Luis  Obispo. I have transitioned to independent consulting and I am currently working on a project for RealtyShares in San Francisco. Co-founder of CopperSpice... Read More →

Wednesday September 16, 2020 09:00 - 10:00 MDT
Back to Basics