Please login to comment
Programming with C++20 - Concepts, Coroutines, Ranges, and more
Programming with C++20 teaches programmers with C++ experience the new features of C++20 and how to apply them. It does so by assuming C++11 knowledge. Elements of the Standards between C++11 and C++20 will be briefly introduced, if necessary. However, the focus is on teaching the elements of C++20.
You will start with learning about the so-called big four Concepts, Coroutines, std::ranges, and modules. The big four a followed by smaller yet not less important features. Here you will learn about std::format, the new way to format a string in C++. C++20 added a new operator, the so-called spaceship operator, which makes you write less code you will learn about in chapter 6. You then will look at various improvements of the language, ensuring more consistency and reducing surprises. You will learn about how lambdas improved in C++20 and what new elements you can now pass to non-type template parameters. Because the STL is a big part of C++, you will learn about some improvement highlights there. Of course, you will not end this book without learning about what happened in the constexpr-world.