Search code examples
c++rtti

Dynamically detect and execute certain methods of an instance of a class


In C++ (GCC g++), is there any means to determine at runtime all methods (or all public methods) of a given class, the names of which satisfy a certain pattern (i.e. have, eg, the string 'test' as part of their name), and then dynamically call them?


Solution

  • Simple answer: no, C++ has no reflection...