类模板template<class T>class?({…};,其中友元函数f对特定类型T(如int),使函数f(X<int>&)成为X<hat>模板类的友元,则其说明应为()
类模板template<class T>class?({…};,其中友元函数f对特定类型T(如int),使函数f(X<int>&)成为X<hat>模板类的友元,则其说明应为()
A.
friend void“);
B.
friend void f(X<T>&);
C.
friend void A::f();
D.
friend void C(T);
正确答案是B
扫描二维码免费使用微信小程序搜题/刷题/查看解析。
版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。