[数据分析] C++ STL容器 vector

初始化容器
vector int_vector;
int_vector.push_back(3);
int_vector.push_back(5);
int_vector.push_back(3);
int_vector.push_back(6);
int_vector.push_back(8);
读取容器指针
dd &int_vector
0x012FFA1C  0147e8e8 014752b8 014752cc 014752d0  
- std::allocator
0147e8e8
- std::_Vector_val >
014752b8    _Myfirst    int*    数组头
014752cc    _Mylast     int*    数组尾
014752d0    _Myend      int*    容器尾
读取容器的数据数组
>dd 0x014752b8
0x014752B8  00000003 00000005 00000003 00000006  
0x014752C8  00000008 (last)cdcdcdcd (end)fdfdfdfd 0f36e000  
0x014752D8  ddfe7b10 00005bac 01475d88 01470580  
0x014752E8  00000002 0f339040 0f36e2e4 000b8000

你可能感兴趣的:([数据分析] C++ STL容器 vector)