Автор: Wayne Murphy
Издательство: BPB Publications
Год: 2024
Страниц: 1308
Язык: английский
Формат: pdf, epub
Размер: 32.6 MB
Getting up to speed with the latest C++ features.
Key Features:
- Learning about the newest features of C++23 and C++20.
- Understanding how to make your code cleaner, faster, and easier.
- Enhancing the safety, readability, and performance of your code.
Description:
C++ continues to remain relevant despite the advent of many new modern languages. This book dives into the significant features of C++20 ("big four") and C++23, addressing challenges and improving development. You will learn how to write cleaner, more efficient, and safer code. From organizing your projects better to handling complex tasks easily, this guide equips you to take your C++ skills to the next level.
We start by discussing basic concepts and learning how to use them in templates. Then, we explore advanced topics like asynchronous programming with coroutines and tools for handling multiple tasks at once. You will discover C++ modules for building modular applications to organize code better. You will learn about ranges for processing data sequences efficiently, including views and adaptors for transforming and filtering data. Further, you will explore new features for containers, cleaner coding practices, and performance optimizations in C++20/23.
The book outlines new features, with lots of code examples. They can use it as a reference guide, or progress through each how-to recipe to maximize their knowledge. Sometimes it will give suggestions on the best approach, but mainly wants to inform you of options, and lets you take the right path for your individual situation. The book should help those that have not kept up to date with recent C++ releases. Whether your company was sticking to an older standard, or you are starting with a new product. There are a lot of great new features available, and this book will help you working with the latest and greatest functionality. You can walk through all the chapters with their code examples, or use it as a quick-reference guide for something specific.
The most challenging yet intriguing part about C++ is that it has evolved over the decades. Due to these changes, you will often find different ways of doing the same thing. The book describes the latest features in detail. It shows how you can do your job in the best manner, by implementing these features in the latest, fastest, cleanest, and safest way.
What you will learn:
- Coroutines to create code that handles asynchronous tasks seamlessly.
- Process sequences of data efficiently using ranges and range-based for loops.
- Utilize improvements and new functionalities for existing containers like vector, list, map, and set.
- New features like improved range adaptors, functional programming constructs, and lambda enhancements.
- User-defined literals, filesystem library enhancements, and type safety features offered by concepts.
Who this book is for:
This book empowers C++ programmers, from experienced professionals to those looking to level up their skills, by teaching the latest features for writing cleaner, more efficient, and powerful C++ code.
Скачать C++ Cookbook: How to write great code with the latest C++ releases