mercredi 27 juillet 2016

How to extend std library containers to get notified when individual elements are changed

I would like to extend std library containers so that the application is notified when ever state of the container gets changed. For example, when a new item is added to a list, I want the container to call a method in application with certain information. My requirement is to track which memory addresses get changed as a result of a given operation. For example, if insertion of a new element results in a modification of some object internal to the list, I would like to know the start address of that object as well as the size of the object, so that I know roughly which area of the memory got changed.

Aucun commentaire:

Enregistrer un commentaire