Reflection API for Modern C++
summary
Presents a concrete compile-time reflection API built on the Reflection TS with a Clang fork and a GitHub repo of working examples, including Reflection TS usage, a functional-style set of operations (mirror operator, meta objects, sequences, placeholders) and composable algorithms like transform/filter/find. Shows working features: enum-to-string and RPC generator for stub/client and scripting bindings (ChaiScript) plus hashing of virtual interfaces. API exposes 100+ metadata operations, supports code splicing patterns, and demonstrates fully working examples in the linked repository.
AI-written summary · about
chapters (26)
- 0:00Start
- 0:24The Agenda
- 2:00Meta Object
- 7:11Reverse of Reflection
- 11:24Meta Object Classification Functions
- 18:34Get Full Name
- 28:05Basic Iteration
- 29:11Placeholders and Placeholder Expressions
- 29:35Placeholder Expressions
- 32:36Comparators
- 37:58Filter and Remove
- 38:28Virtual Functions
- 39:00Find the First One That Satisfies a Predicate
- 49:03Overloaded Functions
- 51:09Structures
- 52:53Data Members
- 53:44Recap
- 55:05Convert Enumerators to Strings
- 57:59Remote Procedure Calls
- 58:25Reflection To Replace the Code Generator
- 1:00:17Reflection of Expressions
- 1:04:02Scripting
- 1:05:22Dispatching
- 1:14:47Use Cases
- 1:16:04Links
- 1:16:34What's Next for Reflection
related talks
01h 10mReflection Is Good for C++ Code Health
01h 01mReflection
01h 27mC++ Reflection - Back on Track
01h 08mReflections: Compile-time Introspection of Source Code
36mCompile-time reflection, Serialization and ORM
46mBuilding a C++ Reflection System in One Weekend Using Clang and LLVM
01h 04mWelcome to v1.0 of the meta::[[verse]]!
42mC++ Horizons
