Memento Design Pattern in Modern C++

Memento Design Pattern in Modern C++ is a very straight forward Behavioural Design Pattern. The motivation behind using the Memento Design Pattern is to keep some sort of token which then allows you to restore an object to a particular state. This is particularly useful if you have a system with medieval components i.e. an object or indeed a set of objects goes through a set of changes. By the way, If you haven’t check out my other articles on Behavioural Design Patterns, then here is the list:...

April 3, 2020 · 5 min · 1039 words · Vishal Chovatiya