1 template<typename T> class Vector; 2 3 template<typename T> class List { 4 public: 5 void push_back(T); 6 }; 7 8 namespace A { 9 class Y { 10 template <typename T> friend class WhereAmI; 11 }; 12 } 13 14 template <typename T> class A::WhereAmI { 15 public: 16 static void func() {} 17 }; 18