![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
sxyizhiren
这个作者很懒,什么都没留下…
展开
-
为什么C++中stack的pop()函数不返回值而返回void
C++中stack,其中有两个方法: pop(), 返回void, top(),返回栈顶的引用。 看起来非常pop函数非常的浪费,为什么不再pop是返回值呢。 我收集到两个原因: 1. 安全原因: 假设有这个stack类 class Stack { public: T pop(); //let pop to change the st原创 2015-01-07 23:21:41 · 15630 阅读 · 1 评论 -
redis源码解析,不定期更新记录
redis 源码解读, 1. event loop 2. command table 3. store struct原创 2015-09-09 17:58:52 · 478 阅读 · 0 评论 -
STL中的堆操作
STL中的原创 2014-10-27 18:51:18 · 709 阅读 · 0 评论