Search This Blog

Friday, May 13, 2011

ExceptionalC++ Fun: 11. Exception Safe code. 3 guarantees

things to remember:
  • basic guarantee: don't leak resource
  • strong guarantee: if exception is thrown, the program state remains unchanged
  • non-throw guarantee: do not throw

No comments: