
STL
喜欢小阔爱
这个作者很懒,什么都没留下…
展开
-
STL 源码剖析笔记
stack: 在vs2017的stl源文件中stack模板为: template<class _Ty,class _Container = deque<_Ty> > class stack{ // LIFO queue implemented with a container ............ 模板有两个参数,一个是储存的类型,另外一种是套用...原创 2018-12-06 17:22:14 · 216 阅读 · 0 评论 -
heap的实现
#include <iostream> #include <vector> using namespace std; void make_heap(vector<int>::iterator begin, vector<int>::iterator end); void push_heap(vector<int>::iterator ...原创 2018-12-06 22:01:38 · 262 阅读 · 0 评论