First page Back Continue Last page Summary Graphics
Basic Exception-safety guarantee
m() doesnt complete its task; but
if m() allocated a resource then the resource shall not leak; and
if m() changes a data structure, then that structure should remain useable.
Notes:
Take a moment to think about the code you write, how would you go about making this guarantee?
If you haven't met the techniques I describe later the task may seem daunting.