About the Book
This book guides you through the evolution of C++ Lambda Expressions so that you can learn it step by step. We'll start with C++03 and a motivation to have "ad-hoc" functors, and then we'll move into the latest C++ standards:
- C++11 - early days of the feature. You'll learn about all the essential aspects of lambdas and several tricks you might apply. This is the longest chapter as we need to cover a lot of topics.
- C++14 - updates. See how to use generic lambdas and captures with an initialiser.
- C++17 - more improvements, especially by handling `this` pointer and allowing `constexpr`. You'll also learn about the overloaded pattern and how to derive from lambda.
- C++20 - in this section you'll see all of the new features adopted for C++20 like template lambdas and how to use them with concepts and constexpr algorithms.
Additionally, throughout the chapters, you'll learn about the following techniques:
- Immediately Invoked Functional Expressions (IIFE)
- how to instrument a default functor to gather extra information
- Replacing std::bind1st, std::bind2nd and removed functional stuff
- The Overloaded Pattern and how to inherit from a lambda
- Passing C++ captureless lambda as a function pointer to C API
- LIFTING with lambdas
- and many more
While the book is 100% ready, I plan to release more updates in the future. All existing readers get new updates for free.
The book is inspired by two articles that appeared at bfilipek.com:
The articles also are based on a live coding presentation given by C++ Expert Tomasz Kamiński at our local Cracow C++ User Group.
Below, you can find the GoodReads page for the book with the readers' feedback:
About the Author
Bartłomiej (Bartek) Filipek is a C++ software developer with more than 12 years of professional experience. In 2010 he graduated from Jagiellonian University in Cracow, Poland with a Masters Degree in Computer Science.
Bartek currently works at Xara, where he develops features for advanced document editors. He also has experience with desktop graphics applications, game development, large-scale systems for aviation, writing graphics drivers and even biofeedback. In the past, Bartek has also taught programming (mostly game and graphics programming courses) at local universities in Cracow.
Since 2011 Bartek has been regularly blogging at bfilipek.com. Initially, the topics revolved around graphics programming, but now the blog focuses on core C++. He's also a co-organiser of the C++ User Group in Cracow. You can hear Bartek in one @CppCast episode where he talks about C++17, blogging and text processing.
Since October 2018, Bartek has been a C++ Expert for the Polish National Body which works directly with ISO/IEC JTC 1/SC 22 (C++ Standardisation Committee).
In the same month, Bartek was awarded his first MVP title for the years 2019/2020 by Microsoft.
In his spare time, he loves collecting and assembling Lego models with his little son.