| 287 | #endif |
| 288 | |
| 289 | void swap(MemoStore& memo) { |
| 290 | #ifndef NDEBUG |
| 291 | std::swap(node_, memo.node_); |
| 292 | std::swap(index_, memo.index_); |
| 293 | #endif |
| 294 | std::swap(no_future_, memo.no_future_); |
| 295 | std::swap(current_time_, memo.current_time_); |
| 296 | entries_.swap(memo.entries_); |
| 297 | future_entries_.swap(memo.future_entries_); |
| 298 | times_.swap(memo.times_); |
| 299 | } |
| 300 | |
| 301 | // Updates the current time to `ts` if it is less. Returns true if updated. |
| 302 | bool UpdateTime(OnType ts) { |
no test coverage detected