带模板的友元函数的声明:
ostream & operator << <type>(ostream & out, test<type> &a);其中test为类名。
或:
template<type>
ostream $ operator << (ostream &out,test<type> &a);
带模板的友元函数的声明:
ostream & operator << <type>(ostream & out, test<type> &a);其中test为类名。
或:
template<type>
ostream $ operator << (ostream &out,test<type> &a);