Is it possible to mangle typename at runtime?

256 Views Asked by At

By using c++filt -t command, I could demangle the name into proper type name (for instance, St3foo -> std::foo)

Is there a way to reverse this thing so I could get St3foo by typing std::foo?

The only thing I could think is by using typeid(<expr>).name() but I have to type any typenames during runtime so I could get the following mangled names.

(Note: I'm using GCC compiler on Windows)

0

There are 0 best solutions below