adds the current list of entries to the given vector
| 112 | } |
| 113 | /// adds the current list of entries to the given vector |
| 114 | void getEntries(std::vector<std::string> &entries) |
| 115 | { |
| 116 | for (auto &entry : history) |
| 117 | entries.push_back(entry); |
| 118 | } |
| 119 | private: |
| 120 | std::size_t capacity; |
| 121 | std::deque <std::string> history; |