list 容器:
还支持8个成员函数:
list容器之sort函数:
list容器的迭代器不支持完全随机访问 不能用标准库中sort函数对它进行排序 list自己的sort成员函数 listclassname classname.sort(compare); //compare函数可以自己定义 classname.sort(); //无参数版本, 按<排序 list容器只能使用双向迭代器 不支持大于/小于比较运算符, []运算符和随机移动 (即类似 “list的迭代器+2” 的操作)
//定义函数模板PrintList, 打印列表中的对象
In-Video Quiz deque没有以下哪个成员函数
A) sort
B) push_front
C) pop_front
D) back
特别声明:以上内容(如有图片或视频亦包括在内)为自媒体平台“网易号”用户上传并发布,本平台仅提供信息存储服务。
Notice: The content above (including the pictures and videos if any) is uploaded and posted by a user of NetEase Hao, which is a social media platform and only provides information storage services.