单项选择题

下列函数模版中的定义中,合法的是______。

A.template<typename T>T abs(T x){return x<0-x:x;}
B.template class<T>T abs(T x){return x<0-x:x;}
C.template T<class T>abs(T x){return x<0-x:x;}
D.template T abs(T x){return x<0-x:x;}
题目列表

你可能感兴趣的试题

微信扫码免费搜题