从 exception safety(异常安全)的观点看,nothrow functions(不抛出的函数)是极棒的,但是在 C++ 的 C 部分之外不调用可能抛出异常的函数简直就是寸步难行。
基于232个网页-相关网页
这种行为乃是基于异常安全性(exception safety) 考虑。 实现一个「移除最后元素并传回, 而且完全顾及 异 常 安 全 性 的 pop() 是 不 可 能 的 ( 这 个 问 题 最 早 由 Tom...
基于56个网页-相关网页
Exception Safety Axioms 异常安全之公理
strong exception-safety guarantee 强异常安全保证
exception safety and 异常时安全性
degrees of exception safety 异常时安全性的等级
techniques for exception safety 有关异常时安全性的技术
Public Safety Exception 公共安全例外
以上来源于: WordNet
Item 12: Exception Safety: Is It Worth It?
条款12:异常安全:它值得吗?
The mapping is difficult to use and contains many pitfalls that lead to bugs, particularly with respect to thread safety, exception safety, and memory management.
映射不易使用,包含许多导致bug的缺陷,特别关于线程安全性、异常安全性和内存管理的部分。
A number of developers responded by noting that this kind of design problem is not unique to multi-threading and that there is a difference between "lock safety" and "exception safety."
这篇文章反响热烈,一些开发人员认为这类设计问题不只限于多线程,在“安全锁”和“安全异常”之间也存在不同之处。
应用推荐