更新时间:2021-06-24 16:34:55
封面
Title Page
Copyright and Credits
Expert C++
Dedication
About Packt
Why subscribe?
Contributors
About the authors
About the reviewers
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Get in touch
Reviews
Section 1: Under the Hood of C++ Programming
Introduction to Building C++ Applications
Technical requirements
Introduction to C++20
Concepts
Coroutines
Ranges
More C++20 features
Building and running programs
Understanding preprocessing
Header files
Using modules in C++20
Understanding Compiling
Tokenization
Syntax analysis
Semantic analysis
Intermediate code generation
Optimization
Machine code generation
Platforms and object files
Introducing Linking
Linking libraries
Summary
Questions
Further reading
Low-Level Programming with C++
Program execution
main()
Special properties of main()
constexpr
Recursion
Working with data
Virtual memory
Addressing
Data types
Pointers
Memory segments
The heap
Arrays
Control flow
Conditionals
The switch statement
Replacing conditionals with function pointers
Functions as types
Loops
Details of Object-Oriented Programming
Understanding objects
Low-level details of objects
High-level details of objects
State
Identity
Behavior
Mimicking a class
Working with classes
Classes from the compiler perspective
Initialization and destruction
Copying objects
Moving objects
Lvalue references
Rvalue references
Notes on operator overloading
Encapsulation and the public interface
Structs in C++
Class relationships
Aggregation and composition
Inheritance
Inheritance from the compiler perspective
Composition versus inheritance
Protected inheritance
Polymorphism
Virtual functions under the hood
Design patterns