20 容器vector的深度探索

1、概述 这篇主要介绍G2.9中STL容器vector的设计结构。vector是连续的空间结构,并可以向容器尾部增加元素。 2、vector的设计结构 解析: a、vector设计的时候,有3个元素:start、finish和end_of_storage。其中start是元素首迭代器,finish是元素尾迭代器,end_of_storage是容器的尾迭代器。 b、向vector中增加元素,如果元素
相关文章
相关标签/搜索