Search code examples
c++rttitypeidtypeinfo

Can you look up a type using its typeinfo?


Say you have the type info for a class, is it possible to get that type using its typeinfo? Basically, if typeid maps a typeinfo to a type is it possible to do the reverse and map a type to a typeinfo?

(I doubt there is but since C++ never ceases to surprise me both pleasantly and unpleasantly I thought I'd ask)


Solution

  • No. It is not possible. That is all.