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

Member predicate AliasTemplateType::getAnInstantiation

Gets an alias instantiated from this template.

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

template<typename T>
using MyAliasTemplate = ...;

MyAliasTemplate<int> instance1;

MyAliasTemplate<long> instance2;
TypeAliasType getAnInstantiation()