Transfer
This commit is contained in:
@@ -17,7 +17,15 @@ int main(){
|
|||||||
|
|
||||||
cout << b.size() << " " << b.capacity() << endl;
|
cout << b.size() << " " << b.capacity() << endl;
|
||||||
b.resize(10);
|
b.resize(10);
|
||||||
|
b.reserve(100);
|
||||||
cout << b.size() << " " << b.capacity() << endl;
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Reference in New Issue
Block a user