Common
Reflection (C++)
Usage of reflective programming in C++
Usage of reflective programming in C++
Reflection in C++ refers to the usage of reflective programming, introduced to the C++ programming language in C++26. Reflection in C++, unlike other languages like Java and C#, occurs at compile time and incurs no runtime overhead. Symbols in the C++ Standard Library handling reflection exist in the std::meta namespace, provided by the <meta> header. As of currently, GCC has support for reflection, while support in Clang is undergoing development with an experimental Clang fork by Bloomberg implementing much of the specification. JetBrains's CLion IDE offers reflection support as of version 2026.2.
Open boosters, collect cards and trade them. Free to play.
Play for free