7namespace layout_designer {
21 if (current ==
nullptr ||
undo_.empty())
23 redo_.push_back(std::move(*current));
24 *current = std::move(
undo_.back());
30 if (current ==
nullptr ||
redo_.empty())
32 undo_.push_back(std::move(*current));
33 *current = std::move(
redo_.back());
std::vector< DockTree > undo_
bool Undo(DockTree *current)
std::vector< DockTree > redo_
bool Redo(DockTree *current)
TreeUndoStack(std::size_t max_steps=kDefaultMaxSteps)
void Push(const DockTree ¤t)