博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
C++ 中list、vector和deque比较[转]
阅读量:4700 次
发布时间:2019-06-09

本文共 400 字,大约阅读时间需要 1 分钟。

转自 

类型

 

Vector

 

Deque

 

List

 

内存管理

 

Poor

 

Good

 

perfect

 

使用[ ]和at() 操作访问数据

 

Very good

 

Normal

 

N/A

 

Iterator的访问速度

 

Good

 

Very good

 

Good

 

Push_back操作(后插入)

 

Good

 

Good

 

Good

 

Push_front操作(前插入)

 

N/A

 

Very good

 

Good

 

Insert(中间插入)

 

Poor

 

Perfect

 

Perfect

 

Erase(中间删除)

 

Poor

 

Perfect

 

Perfect

 

Pop_back(后部删除)

 

Perfect

 

Perfect

 

Normal

 

Swap(交换数据)

 

Perfect

 

Very good

 

Good

 

遍历

 

Perfect

 

Good

 

Normal

转载于:https://www.cnblogs.com/howeho/p/4249890.html

你可能感兴趣的文章
android多层树形结构列表学习笔记
查看>>
Android_去掉EditText控件周围橙色高亮区域
查看>>
《构建之法》第一、二、十六章阅读笔记
查看>>
arrow:让Python的日期与时间变的更好
查看>>
(转)Excel的 OleDb 连接串的格式(连接Excel 2003-2013)
查看>>
Java并发编程
查看>>
Git Stash用法
查看>>
sql server 2008学习8 sql server存储和索引结构
查看>>
Jquery radio选中
查看>>
memcached 细究(三)
查看>>
RSA System.Security.Cryptography.CryptographicException
查看>>
webservice整合spring cxf
查看>>
[解题报告] 100 - The 3n + 1 problem
查看>>
Entity Framework 学习高级篇1—改善EF代码的方法(上)
查看>>
Mybatis逆向工程配置文件详细介绍(转)
查看>>
String类的深入学习与理解
查看>>
不把DB放进容器的理由
查看>>
OnePage收集
查看>>
Java parseInt()方法
查看>>
yahoo的30条优化规则
查看>>