Remove from this set the value_type object that is equivalent to the specified key, if such an entry exists, and return 1; otherwise, if there is no value_type object that is equivalent to key, 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.
Declared in <bslstl_set.h>
set<KEY, COMPARATOR, ALLOCATOR>::size_type
erase(key_type const& key);