
The C++ Standard Library
xudacheng06
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
通用工具Utilities(一):STL中auto_ptr的实现以及auto_ptr_ref的理解
auto_ptr源代码,参考The C++ Standard Library /* The following code example is taken from the book * "The C++ Standard Library - A Tutorial and R转载 2011-08-21 20:02:56 · 707 阅读 · 0 评论 -
STL 小记
//移除迭代器所指元素的正确做法 typedef std::map StringFloatMap; StringFloatMap coll; StringFloatMap::iterator pos; for(pos = coll.begin(); pos != coll.en原创 2011-08-26 16:12:35 · 536 阅读 · 0 评论 -
通用工具Utilities(二)----min max swap offsetof
template inline const T& min(const T& a, const T& b) { return b < a ? b: a; } template inline const T& min(const T& a, const T& b, Compa原创 2011-08-21 21:39:38 · 471 阅读 · 0 评论 -
通用工具Utilities(三)----定义于utility中的pair和辅助性的比较操作符
// utility standard header #pragma once #ifndef _UTILITY_ #define _UTILITY_ #ifndef RC_INVOKED #include #ifdef _MSC_VER #pragma pack(push原创 2011-08-22 09:47:32 · 788 阅读 · 0 评论