

1. list的使用
1.1 构造函数( (c))

1.2 list iterator
- 可将迭代器理解成一个指针,该指针指向list中的某个节点。
- begin与end为正向迭代器,对迭代器执行++操作,迭代器向后移动
- rbegin(end)与rend(begin)为反向迭代器,对迭代器执行++操作,迭代器向前移动
1.3 list capacity
1.4 list element access
1.5 list modifiers
1.6 迭代器失效
list的底层结构为带头结点的双向循环链表,因此在list中进行插入时是不会导致list的迭代器失效的,只有在删除时才会失效,并且失效的只是指向被删除节点的迭代器,其他迭代器不会受到影响
1.7 list和vector区别
2. list 模拟实现
2.1 namespace zyl

2.2 template<class T, class Ref, class Ptr>

2.3 list

完



