Dynamic arrays in C++
Initialize
1  | // Include  | 
Push and Pop
1  | // add items to the back  | 
Size and Capacity
1  | // print size of vector  | 
Access
1  | // access items  | 
Iterate
1  | for (int & ele: arr)  | 
Uncommon Operations
1  | // remove element using iterator  | 
1  | // Include  | 
1  | // add items to the back  | 
1  | // print size of vector  | 
1  | // access items  | 
1  | for (int & ele: arr)  | 
1  | // remove element using iterator  |