![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
list
文章平均质量分 80
dydm_13128
这个作者很懒,什么都没留下…
展开
-
STL中queue,list,vector频繁访问效率
针对STL中的queue,list,vector频繁访问,即插入(尾部)与取出(头部)操作时的效率进行了对比,从时间消耗上来看,queue最少,list与vector消耗相对较大,二者之间差别不大。附上类似分析一篇 :http://blog.csdn.net/lsldd/article/details/7857388。本文代码如下:/* * msg.h * * Author:原创 2014-03-16 14:50:22 · 9241 阅读 · 1 评论 -
类模板与特化
直接上代码,详见代码中注释:/* * list.h * * Created on: * Author: wdmcel */#ifndef _LIST_H_#define _LIST_H_#include #include using namespace std;class test_t //定义了一个原创 2014-03-18 16:47:46 · 532 阅读 · 0 评论