CodeQL library for C/C++
codeql/cpp-all 0.12.10 (changelog, source)
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()