Contents:
The Caretaker class manages Memento objects.
Public Functions
Adds a Memento to the list.
memento – The Memento to add.
Retrieves a Memento by index.
index – The index of the desired Memento.
std::out_of_range – if the index is invalid.
A reference to the Memento at the specified index.