erase method
- T element
Removes element from the set. Time complexity: O(log N).
Returns true if the element was removed, or false if it was not found.
Implementation
bool erase(T element) {
return _container.remove(element);
}
Removes element from the set. Time complexity: O(log N).
Returns true if the element was removed, or false if it was not found.
bool erase(T element) {
return _container.remove(element);
}