Lines Matching full:template
8 template<typename T> struct A { static int a; };
9 template<typename T> int A<T>::a = foo();
12 template<> int A<char>::a;
15 template<> int A<bool>::a = 10;
41 template int A<short>::a; // Unordered
47 template<> struct A<int> { static int a; };
50 template<typename T> struct S { static T x; static T y; };
51 template<> int S<int>::x = foo();
52 template<> int S<int>::y = S<int>::x;
54 template<typename T> T x = foo();
55 template short x<short>; // Unordered
56 template<> int x<int> = foo();
60 template <typename T> struct a {
63 template<typename T> int a<T>::i = foo();
64 template struct a<int>;
67 template <typename T> static T i;
69 template<typename T> T b::i = foo();
70 template int b::i<int>;
74 template<typename T> struct Internal { static int a; };
75 template<typename T> int Internal<T>::a = foo();