STL
文章平均质量分 86
IT_small_farmer
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
vector的push_back
这两天在实际程序中使用 STL 的 vector push_back 类对象时出现问题,偶尔发现 vector 在 push_back 时的调用类对象的拷贝构造函数和析构函数有点特别,简单做下分析。 程序代码: cat > test.cpp 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18转载 2014-11-18 14:51:04 · 1460 阅读 · 0 评论 -
C++ vector的push_back
1.public member function void push_back ( const T& x ); Add element at the end Adds a new element at the end of the vector, after its current last element. The content of this new element i原创 2014-11-24 15:48:49 · 2826 阅读 · 0 评论
分享