clear method

void clear()

Implementation

void clear() {
  stack.clear();
}