Chinaunix首页 | 论坛 | 博客
  • 博客访问: 11564
  • 博文数量: 2
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 34
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-16 10:33
文章分类

全部博文(2)

文章存档

2013年(2)

我的朋友

分类: C/C++

2013-10-24 17:19:34

官方这么说:

The elements of a vector are stored contiguously, meaning that if v is a vector where T is some type other than bool, then it obeys the identity &v[n] == &v[0] + n for all 0 <= n < v.size().

满足 &v[n] = &v[0] + n

翻译过来就是说,vector里的元素是持续存储的。
阅读(856) | 评论(0) | 转发(0) |
0

上一篇:gdb 打印 C++ string vector map set 等的方法

下一篇:没有了

给主人留下些什么吧!~~