C++的STL容器之vector

1.查看refrence

cppreference

2. Iterator invalidation

3.Member types

4.Member functions

5.Element access

6.Iterators

7.Capacity

都是public member function:

empty       checks whether the container is empty  
size        returns the number of elements 
max_size    returns the maximum possible number of elements 
reserve     reserves storage  
capacity    returns the number of elements that can be held in currently allocated storage
shrink_to_fit (C++11) reduces memory usage by freeing unused memory

8.Modifiers

9.Non-member functions

 

上一篇:集合的概念


下一篇:Redis的数据类型及使用场景