
ex
纵使微茫如烟
如卷承过往,似梦驻流光.
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
error*
centos :no manual entry for… yum install -y man-pages原创 2018-11-13 23:18:01 · 147 阅读 · 0 评论 -
类模板的模板参数
类模板的模板参数 1.函数模板是不支持模板参数的,而类模板支持模板参数。 2.区别: 不使用模板参数: Stack<int, std::vector<int> > vStack; 使用模板参数: Stack<int, std::vector> vStack; ...原创 2019-05-22 21:16:12 · 1954 阅读 · 0 评论 -
template --- decay
对于非引用类型的参数,在实参演绎的过程中会出现从数组到指针(array-to-pointer)的类型转变,称之为退化(decay) test.h #include<iostream> #include<typeinfo> template<class T> void ref(T& t) { std::cout << typeid(t).n...原创 2019-05-22 21:33:00 · 286 阅读 · 0 评论