erase method

bool erase(
  1. 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);
}