#pragma once #include #include "Operation.h" #include "OwnPtr.h" class UndoStack { public: UndoStack() { } void push(OwnPtr&&); OwnPtr pop(); bool is_empty() const { return m_stack.empty(); } private: std::stack> m_stack; };