c++链表std::list

来源:互联网 发布:云服务器端口怎么开启 编辑:程序博客网 时间:2024/05/22 12:32

Lists are sequence containers that allow constant time insert and erase operations.
比起其他序列容器,例如:array、vector、deque等,list的优点是能在容器内的任意位置插入、取出、移动元素。list主要的缺点是缺少直接通往元素位置的接口。(The main drawback of list and forward_list is that they lack direct access to the elements by their position)
1、构造函数(constructor):
(1) empty container constructor
(2) fill constructor
(3) range
(4) copy

0 0
原创粉丝点击