Using Examples for C++20 through C++26
Buch, Englisch, Format (B × H): 178 mm x 254 mm
ISBN: 979-8-8688-3233-8
Verlag: APRESS L.P.
Get up to speed on the latest features and tools in the C++ language. As the classic language continues to evolve atop its complex history, this book helps experienced C++ developers confidently navigate new standards and effectively adopt modern best practices from C++20, C++23 and C++26.
You will first explore foundational concepts like modules and utilities before diving into paradigms such as concepts, functional programming with std::ranges, and coroutines. Each topic will be accompanied by an example project to ensure hands-on learning.The book also explores specialized topics like tensor manipulation with std::mdspan, concurrency tools (e.g., atomic operations, barriers), and new language features like std::format. Finally, you will review a detailed case study on building a FORTH compiler-interpreter, showcasing the integration of all these modern C++ techniques in a real-world application.
This book stands out for its in-depth presentation of material, with numerous drawings, tables and non-trivial, real-world examples. These strengths, combined with the author’s extensive C++ expertise, create a valuable guide for programmers and C++ enthusiasts eager to explore modern capabilities of C++.
What You Will Learn:
- Master modern C++ features introduced in C++20, C++23 and C++26, including modules, concepts, coroutines, ranges and new utilities.
- Apply modern concurrency tools such as non-blocking blocking std::atomic, barriers, and other synchronization mechanisms to write multithreaded applications
- Use code snippets and examples such as the FORTH compiler-interpreter, serial and parallel pipelines etc.
- Understand software design principles when using modern C++, usage of UML, design patterns etc.
- Review examples in the domain of embedded systems
Who This Book is for:
Experienced C++ developers who are familiar with the standard library. Readers should be comfortable with C++ but maybe haven’t had time to dive in and understand modern and advanced features of the modern versions.
Zielgruppe
Professional/practitioner
Autoren/Hrsg.
Fachgebiete
Weitere Infos & Material
Introduction.- 1: Modules.- 2: Useful Utilities: std::optional, std::any, std::variant, std::expected.- 3: Concepts.- 4: Functional Programming and the std::ranges.- 5: Coroutines.- 6: Dealing with Tensors with the Help of std::mdspan.- 7: CASE STUDY – FORTH Language Compiler-Interpreter.- 8: More in C++23 and C++26: std::print, Programming by Contract.– APPENDIX: Non-Blocking Parser; How to Debug Code?; The Stacktrace Library; Software Testing with DocTest Lib; Spaceship Operator.




