Real-World Example 2

Learn to use C++ reflection to reflect class members, overload functions, and test capabilities.

Reflection

The term reflection refers to the ability to inspect a class without knowing anything about its contents. In contrast to many other programming languages, C++ does not have built-in reflection, which means we have to write the reflection functionality ourselves. Reflection will be included in future versions of the C++ standard; hopefully, we will see this feature in C++23.

Get hands-on with 1200+ tech skills courses.