0
点赞
收藏
分享

微信扫一扫

JDK新特性-Stream流

开源分享 2023-09-26 阅读 36

目录

List的模拟实现

List节点类

List链表结构

List迭代器类

结构

T& operator*();

T& operator->();

Self& operator++();

Self operator++(int);

Self& operator--();

Self& operator--(int);

bool operator!=(const Self& l);

bool operator==(const Self& l);

List的构造

构造函数

迭代器区间构造

拷贝构造

运算符重载

析构函数

List iterator

begin

end

List Capacity

size

empty

List Access

front

back

List Modify

在pos位置前插入值为val的节点

删除pos位置的节点

clear

其它功能进行复用


学习目标

List的模拟实现

List节点类

List链表结构

List迭代器类

List的构造

List iterator

List Capacity

List Access

List Modify

效果展示:

举报

相关推荐

0 条评论