CodeQL library for C/C++
codeql/cpp-all 4.1.1-dev (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()