This commit is contained in:
e2hang
2025-07-21 21:10:27 +08:00
parent 63b4beadae
commit f14c43fe3a
2 changed files with 8 additions and 0 deletions

View File

@@ -17,7 +17,15 @@ int main(){
cout << b.size() << " " << b.capacity() << endl;
b.resize(10);
b.reserve(100);
cout << b.size() << " " << b.capacity() << endl;
auto ti = b.begin() + 3;
b.insert(ti, 20);
for(int i = 0; i < b.size(); i++){
cout << b.at(i) << " ";
}
cout << endl;
return 0;
}

Binary file not shown.