Comprehensive C++23 resource offering deep coverage from syntax basics to advanced concurrency and standard library usage. Learn best practices to write secure, efficient, and modular C++ code with expert guidance.
Key Features
In-depth coverage of modern C++23 concepts ensuring comprehensive understanding of language features
Focus on writing secure, maintainable, and efficient code for professional and scalable projects
Practical examples and real-world scenarios illustrating advanced techniques and best practices
Book Description
This book begins by grounding readers in the essentials of modern C++23, covering syntax, compiling, and core programming concepts. Early chapters introduce building blocks like data types, functions, and statements, ensuring a solid foundation. Readers also learn coding best practices focused on readability and modularization. As the journey progresses, the focus shifts to object-oriented programming, exploring classes, inheritance, namespaces, and lifecycle management. The text includes advanced topics such as templates, macros, and the integration of C libraries. Readers develop skills in designing secure, maintainable, and extensible code while mastering error handling and testing. The final sections dive into concurrency, standard library features like containers and algorithms, and advanced stream handling. Practical guidance on thread management, synchronization, and modern concurrency tools prepares readers for real-world applications. Concluding chapters present C++ guidelines, emphasizing sustainable and quality code development, completing a comprehensive path from fundamentals to expert-level mastery.
What you will learn
Understand C++23 syntax and semantics effectively
Apply object-oriented programming principles with clarity
Utilize the standard library for data structures and algorithms
Implement concurrent programming with threads and synchronization
Write modular and maintainable code following best practices
Master templates and generic programming techniques
Who this book is for
Ideal for intermediate programmers and software developers with some familiarity in programming concepts, looking to master modern C++23. Readers should have basic understanding of programming logic and syntax. Prior experience in any procedural or object-oriented language helps, but beginners motivated to learn C++ thoroughly will also benefit.
Table of Contents
C++: The Comprehensive Guide
Programming in C++
C++ for Newcomers
The Basic Building Blocks of C++
Good Code, 1st Dan: Writing Readable Code
Higher Data Types
Functions
Statements in Detail
Expressions in Detail
Error Handling
Good Code, 2nd Dan: Modularization
From Structure to Class
Namespaces and Qualifiers
Good Code, 3rd Dan: Testing
Inheritance
The Lifecycle of Classes
Good Code, 4th Dan: Security, Quality, and Sustainability
Specials for Classes
Good Code, 5th Dan: Classical Object-Oriented Design
Pointers
Macros
Interface to C
Templates
Containers
Container Support
Good Code, 6th Dan: The Right Container for Each Task