CodeQL library for C/C++
codeql/cpp-all 5.1.0 (changelog, source)
Search

Member predicate TemplateTemplateParameterInstantiation::getTemplate

Gets the template template parameter from which this instantiation was instantiated.

For example for Container<Elem> in the following code, the result is Container<T>:

template <template <typename T> class Container, class Elem>
void foo(const Container<Elem> &value) { }
TemplateTemplateParameter getTemplate()