Item29: Strive for exception-safe code.(Effective C++)
摘要:
Exception-safe functions leak no resources and allow no data structures to become corrupted, even when exceptions are thrown. Such functions offer the basic, strong, or nothrow guarantees. The strong guarantee can often be implemented via copy-and-swap, but the strong guarantee is not practical for. 阅读全文
posted @ 2011-03-30 23:33 Ray Z 阅读(291) 评论(0) 推荐(0) 编辑