template<typename T, typename U> class X0 {
public:
typedef int size_type;
X0(int);
~X0();
void f0(const T&, const U&);
T& operator[](int i) const;
void f1(size_type) const;
void f2(size_type) const;
void f3(size_type) const;
void f4() ;
operator T*() const;
T value;
};
template<typename T, typename U>
void X0<T, U>::f0(const T&, const U&) { }
template<class X, class Y>
X& X0<X, Y>::operator[](int i) const {
(void)i;
return value;
}
template<class X, class Y>
void X0<X, Y>::f1(int) const { }
template<class X, class Y>
void X0<X, Y>::f2(size_type) const { }
template<class X, class Y, class Z> void X0<X, Y>::f3(size_type) const {
}
template<class X, class Y>
void X0<Y, X>::f4() { }
template<typename T, typename U>
void X0<T, U>::f0(const T&, const U&) { }
template<typename T, typename U>
X0<T, U>::X0(int x) : value(x) { }
template<typename T, typename U>
X0<T, U>::~X0() { }
template<typename T, typename U>
X0<T, U>::operator T*() const {
return &value;
}
namespace N { template <class X> class A {void a();}; }
namespace N { template <class X> void A<X>::a() {} }
template<typename T>
struct X1 {
template<typename U>
struct B { void f(); };
};
template<typename T>
template<typename U>
void X1<T>::template B<U>::f() { }
template <template <class> class T>
class X2 {
template <class F>
class Bar {
void Func();
};
};
template <template <class> class T>
template <class F>
void X2<T>::Bar<F>::Func() {}
template <template <class> class T>
class X3 {
void F();
};
template <template <class> class T>
void X3<T>::F() {}