CodeQL library for C/C++
Search

Member predicate TemplateClass::getAnInstantiation

Gets a class instantiated from this template.

For example for MyTemplateClass<T> in the following code, the results are MyTemplateClass<int> and MyTemplateClass<long>:

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

MyTemplateClass<int> instance;

MyTemplateClass<long> instance;
Class getAnInstantiation()