![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
STL
JeaminThk
雄才必有大略 鲁钝必有深修
展开
-
C++ 的 allocator类 提供类型化的内存分配以及对象的分配和撤销
在没有深入的叙述本文之前先来几个引子原创 2014-10-28 14:58:03 · 405 阅读 · 0 评论 -
std::map的使用
map类的实现代码 template<class _Kty, class _Ty, class _Pr = less, class _Alloc = allocator > > class map : public _Tree > { // ordered red-black tree of {key, mapped} values, unique keys public: ty原创 2016-08-19 17:55:47 · 1785 阅读 · 0 评论 -
MFC中 CArray(template)的应用
MFC中CArray代码的实现 template class CArray : public CObject { public: // Construction CArray(); // Attributes INT_PTR GetSize() const; INT_PTR GetCount() const; BOOL IsEmpty() const; INT_PTR GetUppe原创 2016-08-19 18:11:46 · 1615 阅读 · 0 评论