llvm-project/clang-tools-extra/test/modularize/Inputs/TemplateClasses.h

16 lines
323 B
C++

// Exercise some template issues. Should not produce errors.
// Forward declaration.
template<class T> class TemplateClass;
// Full declaration.
template<class T>class TemplateClass {
public:
TemplateClass() {}
private:
T Member;
};
// Template alias.
template<class T> using TemplateClassAlias = TemplateClass<T>;