set::erase
(1)
void erase (iterator position);
(2)
size_type erase (const value_type& val);
(3)
void erase (iterator first, iterator last);
1 | // erasing from set |
Output:
myset contains: 10 30 50
vector::erase
iterator erase (iterator position);
iterator erase (iterator first, iterator last);
1 | / erasing from vector |
myvector contains: 4 5 7 8 9 10
string::erase
1 | // string::erase |
1 | Output: |