http://blog.youkuaiyun.com/beyondhaven/article/details/4204345
这里要注意的一点:每次调用T前,必须先声明T,例如
template <nametype T>
T swap(T a,T b);
http://blog.youkuaiyun.com/beyondhaven/article/details/4204345
这里要注意的一点:每次调用T前,必须先声明T,例如
template <nametype T>
T swap(T a,T b);