
源码简析
文章平均质量分 75
「已注销」
这个作者很懒,什么都没留下…
展开
-
c++stl vector源码简析
c++stl vector源码简析vector是我们经常用的容易之一,我们现在来简单看一下vector的部分源码理解vector的行为以便我们在使用过程中更得心应手首先看一下vector的alloc基类:template <class _Tp, class _Allocator, bool _IsStatic>class _Vector_alloc_base {public: typedef原创 2017-03-26 13:46:35 · 1446 阅读 · 0 评论 -
stl源码简析char_traits.h
stl源码简析char_traits.h掠过之前不重要的东西,直接上代码了 static void assign(char_type& __c1, const char_type& __c2) { __c1 = __c2; } static bool eq(const _CharT& __c1, const _CharT& __c2) { return __c1 == __c2; }原创 2017-03-28 08:56:50 · 994 阅读 · 0 评论