[cfe-dev] Matching Type to template
Daniel Dilts via cfe-dev
cfe-dev at lists.llvm.org
Wed Mar 16 14:07:29 PDT 2016
I have a type that I have gotten with this expression:
I am matching it against a set of types that I want to process. Currently
I am doing a string compare with the result of getAsString() and the
desired type. This works for trivial types (int, float, etc.) but it
doesn't scale to more complex types.
How would I test to see if the type is an instantiation of std::vector, and
find the element type of the vector?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev