February 2022
Beginner
848 pages
22h 40m
English
By now, you should have a solid understanding of basic C++ syntax. You are poised to learn language features that help you program C++ applications efficiently.
In this lesson, you learn
■ An introduction to the preprocessor
■ The #define keyword and macros
■ An introduction to templates
■ How to write template functions and classes
■ The difference between macros and templates
■ How to use static_assert to perform compile-time checks
Lesson 2, “The Anatomy of a C++ Program,” introduced the preprocessor. The preprocessor, as the name indicates, runs before the compiler does. In other words, you use the preprocessor to influence what is compiled ...
Read now
Unlock full access