Lines Matching full:template

5 template<template<typename T> class X> struct A; // expected-note 2{{previous template template par…
7 template<template<typename T, int I> class X> struct B; // expected-note{{previous template templat…
9 template<template<int I> class X> struct C; // expected-note 2{{previous non-type template paramet…
11 template<class> struct X; // expected-note{{too few template parameters in template template argume…
12 template<int N> struct Y; // expected-note{{template parameter has a different kind in template arg…
13 template<long N> struct Ylong; // expected-note{{template non-type parameter has a different type '…
14 template<const int &N> struct Yref; // expected-note{{template non-type parameter has a different t…
17 template<class> struct Z;
19 template<class, class> struct TooMany; // expected-note{{too many template parameters in template t…
26 …> *a4; // expected-error{{template template argument has different template parameters than its co…
27 …> *a5; // expected-error{{template template argument has different template parameters than its co…
28 …> *a6; // expected-error{{template template argument has different template parameters than its co…
30 …> *a8; // expected-error{{template template argument has different template parameters than its co…
31 …> *a9; // expected-error{{template template argument has different template parameters than its co…
33 template<typename T> void f(int);
35 A<f> *a9; // expected-error{{must be a class template}}
40 // expected-error@-2 {{found '<::' after a template name which forms the digraph '<:' (aka '[') and…
49 template <typename, typename = int>
53 template <typename ,int>
57 template <template<typename,int> class TT, typename T, int N>
58 int operator<<(int, TT<T, N> a) { // expected-note{{candidate template ignored}}
62 …void f0( Y<int,1> y){ 1 << y; } // expected-note{{in instantiation of function template specializa…
66 template <typename Primitive, template <Primitive...> class F>
72 typedef typename Primitive::template call<F> x;
75 template <template <typename> class... Templates>
85 template <typename T>
87 template <template <typename> class... Templates>
96 static_assert(N == 2, "Number of template arguments incorrect");
105 template<template<typename T, typename U, T v> class X> struct A {
114 // here. While parsing the template, we form
126 template<typename T, typename U, U v> struct B { // expected-note {{parameter}}
141 template<template<typename T, T> class U> struct A {};
142 template<template<typename T, T> class U> struct B : A<U> {};
146 template<typename T> struct A {};
147 template<typename T = int> struct A;
148template<template<typename...> class A> void f(A<int>*) { A<> a; } // expected-warning 0-1{{extens…