• Home
  • Raw
  • Download

Lines Matching refs:template

9   template<typename T> void f();
19 template<typename T> void B::f() {} in f()
20 template<> inline void B::f<int>() {}
23 template<int N> struct C_Base { struct D { constexpr operator int() const { return 0; } }; };
32 template<typename T> int E(T t) { return t; } in E()
34 template<typename T> struct F {
36 template<typename U> int g();
39 template<typename T> int F<T>::f() { return 0; } in f()
40 template<typename T> template<typename U> int F<T>::g() { return 0; } in g()
41 template<typename T> int F<T>::n = 0;
42 template<> inline int F<char>::f() { return 0; } in f()
43 template<> template<typename U> int F<char>::g() { return 0; } in g()
44 template<> struct F<void> { int h(); };
46 template<typename T> struct F<T *> { int i(); };
47 template<typename T> int F<T*>::i() { return 0; }
56 template<typename T = int, int N = 3, template<typename> class K = F> int H(int a = 1);
57 template<typename T = int, int N = 3, template<typename> class K = F> using I = decltype(H<T, N, K>…
58 template<typename T = int, int N = 3, template<typename> class K = F> struct J {};
62 template<typename T> struct B : A {};
63 template<typename T> struct B<T*> : B<char> {};
64 template<> struct B<int> : B<int*> {};
75 template<typename = int> struct A;
76 template<int = 0> struct B;
77 template<template<typename> class = A> struct C;
78 template<typename = int, int = 0, template<typename> class = A> struct D {};
79 template<typename U> struct Y {
80 template<typename> friend struct A;
81 template<int> friend struct B;
82 template<template<typename> class> friend struct C;
83 template<typename, int, template<typename> class> friend struct D;
94 template<typename T> struct X {} __attribute__((aligned(8)));
98 template<typename T> T f();
99 template<typename T> struct X {
100 template<typename U> using Q = decltype(f<T>() + U());
123 template<typename T> struct F;
124 template<template<int> class A, int B> struct F<A<B>> {
125 template<typename C> F();
127 template<template<int> class A, int B> template<typename C> F<A<B>>::F() {}
129 template<typename A, int B> struct F<A[B]> {
130 template<typename C> F();
132 template<typename A, int B> template<typename C> F<A[B]>::F() {}
136 template<typename T> struct A;
138 template<typename T> struct MemberClassTemplate::A {};
139 template<typename T> struct MemberClassTemplate::A<T*> {};
140 template<> struct MemberClassTemplate::A<int> {};