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
Favicon IconArrow Chevron Left IconCodeOutputArrow Chevron Right IconLoading...Run