clear method

void clear()

Clear all history

Implementation

void clear() {
  _history.clear();
  _currentIndex = -1;
}