C++ Lambda Story: Everything You Need to Know about Lambda Expressions in Modern C++!

  • 1h 25m
  • Bartłomiej Filipek
  • J. Ross Tech
  • 2020

Everything you need to know about Lambda Expression in Modern C++!

This concise and practical book shows the story of lambda expressions. You’ll learn how to use this powerful feature in a step-by-step manner, slowly digesting the new capabilities and enhancements that come with each revision.

We’ll start with C++98/03, and then we’ll move on to the latest C++ Standards.

  • C++98/03 - how to code without lambda support. What was the motivation for the new modern C++ feature?
  • C++11 - early days. You’ll learn about all the elements of a lambda expression and even some tricks. This is the longest chapter as we need to cover a lot.
  • C++14 - updates. Once lambdas were adopted, we saw some options to improve them.
  • C++17 - more improvements, especially by handling this pointer and allowing constexpr.
  • C++20 - in this section we’ll have a glimpse of the future.

Additionally, you’ll find techniques and handy patterns throughout the chapters for using lambda in your code.

Walking through the evolution of this powerful C++ feature allows us not only to learn lambdas but also to see how C++ has changed over recent years. In one section you’ll see a technique and then it will be “iterated” and updated in further chapters when new C++ elements are available. When possible, the book cross-links to other related sections of the book.

In this Book

  • About the Book
  • Lambdas in C++98/03
  • Lambdas in C++11
  • Lambdas in C++14
  • Lambdas in C++17
  • Lambdas in C++20
  • References

YOU MIGHT ALSO LIKE