CodeQL library for C/C++
Search

Member predicate ClassTemplateInstantiation::getTemplate

Gets the class template from which this instantiation was instantiated.

For example for MyTemplateClass<int> in the following code, the result is MyTemplateClass<T>:

template<class T>
class MyTemplateClass {
  ...
};

MyTemplateClass<int> instance;
TemplateClass getTemplate()