0%

Book Description

This quick C++ 20 guide is a condensed code and syntax reference to the popular programming language, fully updated for C++20. It presents the essential C++20 code syntax in a well-organized format that can be used as a handy reference.   

This edition covers topics including designated initializers, lambdas and lambda captures, the spaceship operator, pack expressions, string literals as template parameters, atomic smart pointers, and contracts. It also covers library changes including extended futures, latches and barriers, task blocks, and text formatting.   

In the C++20 Quick Syntax Reference, you will find short, simple, and focused code examples.  This book includes a well-laid-out table of contents and a comprehensive index allowing for easy review. You won’t find any technical jargon, bloated samples, drawn out history lessons, or witty stories in this book. What you will find is a language reference that is concise, to the point, and highly accessible.  The book is packed with useful information and is a must-have for any C++ programmer. 

What You'll Learn

  • Discover the key C++20 features
  • Work with concepts to constrain template arguments
  • Use modules as a replacement for header files
  • Take advantage of the three-way comparison operator
  • Create immediate functions using the consteval keyword
  • Make use of constexpr, constinit and designated initializers

Who This Book Is For 

Experienced C++ programmers. Additionally, this is a concise, easily-digested introduction for other programmers new to C++.

 



Table of Contents

  1. Cover
  2. Front Matter
  3. 1. Hello World
  4. 2. Compile and Run
  5. 3. Variables
  6. 4. Operators
  7. 5. Pointers
  8. 6. References
  9. 7. Arrays
  10. 8. Strings
  11. 9. Conditionals
  12. 10. Loops
  13. 11. Functions
  14. 12. Classes
  15. 13. Constructors
  16. 14. Inheritance
  17. 15. Overriding
  18. 16. Access Levels
  19. 17. Static
  20. 18. Enum Types
  21. 19. Structs and Unions
  22. 20. Operator Overloading
  23. 21. Custom Conversions
  24. 22. Namespaces
  25. 23. Constants
  26. 24. Preprocessor
  27. 25. Exception Handling
  28. 26. Type Conversions
  29. 27. Smart Pointers
  30. 28. Templates
  31. 29. Headers
  32. Back Matter
18.188.175.182