C++17 In Detail

03 August 2020

C++ Lambda Story is 100% Complete

I’m pleased to announce that I’ve finished the work on the latest update for C++ Lambda Story! This makes the book complete now, and I can finally set its status to 100%! Read on to see the latest changes. It got more than 50 new pages!

Changes

Last time the book had 95 pages, and with the recent additions, it reached 146!

Some notable changes:

  • New sections: how to store lambdas in a container, Lambdas and Asynchronous Execution, recursive lambdas, Exception Specification in Type System,
  • New section on variadic generic lambdas in C++14 and C++17 chapters,
  • New section on variadic packs in C++11, C++20 chapters,
  • Improved description of the syntax of lambdas, showed differences in C++17 and C++20 chapters,
  • Use const and noexcept in longer examples if possible,
  • Lots of smaller changes, improvements, layout across the whole book.
  • Most code samples have now a link to an online compiler version in the title,

If you already own the book, you can go to your Library page at Leanpub and download the latest version. Here's also a help section on that topic if you need more information.
I'm not getting emails about updates to a book I've bought. What can I do? - Leanpub Manual

Background

On my website, you can read at least five extensive articles that describe all the essential parts of lambdas:

Have a look if you haven’t read it before:

I packed my knowledge about lambdas into a beautiful ebook, with lots of examples and additional descriptions.
And just as with my book about C++17, I made it available at Leanpub.
The platform makes it easy for me to publish new updates, and everyone who has the book can immediately access the latest changes (at no charge).
Also, the platform allows you not only to read it as PDF but also Epub, Mobi or Online.

Here’s the list of the things you can learn:

  • C++98/03 - What was the motivation for the new C++ feature?
  • C++11 - Early days: 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 how to leverage the overloaded pattern.
  • C++20 - In this chapter, 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.


C++ Lambda Story @Leanpub

Acknowledgment

While the initial version of the book was relatively short, the extended version (additional 100 pages, and especially those last 50!) was a result of the feedback and encouragement I got from JFT (John Taylor). John spent a lot of time on finding even little things that could be improved.

What’s more, I got a lot of feedback from the readers of my blog and the previous versions of the book.

Thank you all!

Kindle Version

This version is also available as a Kindle book, at all stores on Amazon!

For example, here’s the US version:

https://www.amazon.com/dp/B08F2LT8YG

Your Feedback

I appreciate your feedback and support! The book has now almost 1000 readers (and only one refund)! That’s not too bad I think :)

Add your feedback/review here:
https://www.goodreads.com/book/show/53609731-c-lambda-story

You can use this comment site:
https://leanpub.com/cpplambda/feedback

Or just write a direct email to me:
bartlomiej DOT filipek AT bfilipek DOT com

FAQ

Some questions and answers if you wonder about getting the book.

I’m a beginner in C++? Is that book for me?

The book assumes that you have a basic knowledge of C++. I suggest taking some elementary course first.

I’m an expert, and I know everything about C++? Is that book for me?

Yeah… you know all about C++? Is this possible? :)

Anyway, in your case, the book will give you a good refresher and even will show you some new tricks.

I’m not a beginner nor an expert…?

Perfect! So the book will show you lots of examples that will expand your knowledge and also remind you things that you may already know.

Additionally, throughout the book, you’ll see other techniques and features related to modern C++ like, constexpr, exceptions, fold expressions, std::thread, perfect forwarding using callable objects and many more.

Is this a historical book with lots of boring descriptions?

The flow of the book focuses on the background behind lambda expression and its evolution. But it’s meant to teach you practical things. You’ll learn the lambdas step by step, understanding new capabilities that lambdas got with each C++ revision.

Will I get free updates?

Yes! While the book is 100% ready, I might add some more updates in the future, mainly bug fixes.

That’s why it’s best to by the book as early as possible; for example, the earliest version of the book was completely free.

The content looks like copied directly from the blog, so what’s the point to buy it?

The very early version of the book was adapted directly from the blog… but then most of the content was rewritten and heavily updated. Now, you get at least 4x of what’s available on the blog, not to mention the better quality and a nice looking pdf/ebook (there’s no need to click and jump between separate blog articles).

On the Internet there’s lot’s of free content about lambdas, so why buy the book?

Sure! Even on my blog, you can find lots of articles about lambda expression. The C++ draft is also free so that you can read the specification on your own. Or have an additional explanation from great cppreference pages.

But the book will save you lots of your precious time looking for those quality content, extra examples, extended descriptions. What’s more, by having a nice learning flow, you can understand this powerful C++ feature much faster at a super low price.

Is there a refund option?

Yes! if you buy the Book through Leanpub, then you have a 45-day guarantee. (Not applicable with Kindle direct Publishing though).

You can also download a preview with almost 60 pages.

Did I miss something?

If you have more questions, then please ask directly and write at bartlomiej DOT filipek AT bfilipek.com.

How to Get the Book and Join 1000 of Readers?

There are three ways:

You can also download a free sample which contains almost 60 pages from the Leanpub page!

Let’s start a lambda week!

To celebrate this new version, I wanted to create something unique. How about a week with lambda?

Starting tomorrow, till Friday, on this blog on through the mailing list you’ll see a short article which explores a selected lambda topic. Here’s the plan:

Stay tuned and look out for the next article tomorrow :)

If you want to get additional C++ resources, exlusive articles, early access content, private Discord server and weekly curated news, check out my Patreon website: (see all benefits):

© 2017, Bartlomiej Filipek, Blogger platform
Disclaimer: Any opinions expressed herein are in no way representative of those of my employers. All data and information provided on this site is for informational purposes only. I try to write complete and accurate articles, but the web-site will not be liable for any errors, omissions, or delays in this information or any losses, injuries, or damages arising from its display or use.
This site contains ads or referral links, which provide me with a commission. Thank you for your understanding.