转:C++ STL源码剖析
摘要:http://www.cnblogs.com/lfsblack/archive/2012/11/10/2764334.html
阅读全文
posted @
2014-02-11 13:58
qinfengxiaoyue
阅读(119)
推荐(0)
程序员必知8大排序3大查找
摘要:详见:http://blog.csdn.net/shan9liang/article/details/7533466
阅读全文
posted @
2013-11-11 15:49
qinfengxiaoyue
阅读(169)
推荐(0)
使用auto_ptr需要注意的事项
摘要:注:C++11 已不推荐使用,应使用scoped_ptr/shared_ptr. 部分原因就是如下的注意事项。 转自:http://patmusing.blog.163.com/blog/static/13583496020101824541270/ a. auto_ptr定义于头文件memory中; b. auto_ptr只能用来管理单个动态创建的对象,而不能管理动态创建的数组; ...
阅读全文
posted @
2013-11-11 13:29
qinfengxiaoyue
阅读(801)
推荐(0)
vector/list/set/map 遍历耗时统计
摘要:#include#include #include#include#include#include#include #include using namespace std;#define NUM1 10 //外层循环10次#define NUM2 100000000 //对于int、dword的1亿次i++和++i#define NUM3 100000//对与包含10万个元素容器的iter++...
阅读全文
posted @
2013-10-29 19:53
qinfengxiaoyue
阅读(1370)
推荐(0)