C++学习笔记--STL标准模板库的认识与使用--序列式容器--forward_list(单向链表)--(C++11)

1、什么是forward_list?

std::forward_list 是 STL 提供的 单向链表 数据结构,相比于 std::list 减小了空间开销。

2、forward_list 的使用方法

forward_list 的使用方法与 list 几乎一致,但是迭代器只有单向的,因此其具体用法请参考

(2条消息) C++学习笔记--STL标准模板库的认识与使用--序列式容器--list(链表)_代码骑士的博客-CSDN博客icon-default.png?t=LA92https://blog.csdn.net/qq_51701007/article/details/121250132

猜你喜欢

转载自blog.csdn.net/qq_51701007/article/details/121253321