| 245 | |
| 246 | public: |
| 247 | explicit reverse_iterator(Stack<Object, Capacity>& s) |
| 248 | : stack(s), entries(s.getPool()), elem(0) |
| 249 | { |
| 250 | current_entry = s.stk; |
| 251 | if (current_entry) { |
| 252 | while (Entry *next = current_entry->next) { |
| 253 | entries.push(current_entry); |
| 254 | current_entry = next; |
| 255 | } |
| 256 | } |
| 257 | } |
| 258 | |
| 259 | bool hasData() const |
| 260 | { |