题目内容:
类模板template<classT>classX{…},其中友元函数f对特定类型T(如int),使函数f(x<int>)成为x<int>模板类的友元,则其说明为( )。
A.friendvoidf(); B.friendvoidf(x<T>);
C.friendvoidA::f();
D.friendvoidC<T>::f(x<T>);
参考答案:【答案仅供学习,请勿对照自行用药等】
答案解析: