Remove the element equivalent to the specified key, if present.
Declared in <bslstl_set.h>
set<KEY, COMPARATOR, ALLOCATOR>::size_type
erase(key_type const& key);
Return 1 if an entry was removed; otherwise return 0 with no other effect. This method invalidates only iterators and references to the removed element and previously saved values of the end() iterator.
1 if an element was erased, otherwise 0
| Name | Description |
|---|---|
| key | key of the element to remove |