how to remove data from index in cpp code example Example: how to erase elemts accoding to index c++ arr.erase(arr.begin() + i);