Programming with C++20:Concepts, Coroutines, Ranges, and more
by: Andreas Fertig (Author),Franziska Panter(Illustrator)
Publication Date: 6 Feb. 2024
Language: English
Print Length: 333 pages
ISBN-10: 3949323058
ISBN-13: 9783949323058
Book Description
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 features of C++20.You will start with leaing about the so-called big four Concepts, Coroutines, std::ranges, and modules. The big four are followed by smaller yet not less important features. You will lea about std::format, the new way to format a string in C++. In Chapter 6, you will lea about a new operator, the so-called spaceship operator, which makes you write less code.You then will look at various language improvements, ensuring more consistency and reducing surprises. You will lea how lambdas improved in C++20 and what new elements you can now pass as non-type template parameters. Your next stop is the improvements to the STL.Of course, you will not end this book without leaing about what happened in the constexpr-world.