271 total contributions
The .erase() method removes a single value from a set.
.erase()
setName.erase(value);
The value is the element to be removed from the set.
value
The following example uses .erase() to remove elements from the stoneFruits set:
stoneFruits
usVisit uscodeHide codeCodeOutputHide outputHide outputLoading...Run
222 total contributions
73 total contributions