1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#include "history.h" using namespace std; namespace ov4 { void add_history(const std::string &s) { history_vec.push_back(s); } void clear_history() { history_vec.clear(); } size_t get_last_index() { return history_vec.size() - 1; } }