Which method of Iterator removes the last element returned by next()?

Last Updated :
Discuss
Comments

Which method of Iterator removes the last element returned by next()?


delete()

remove()

discard()

erase()

Share your thoughts in the comments