Greg Colvin
Posts: 9
Nickname: gregc
Registered: Jun, 2004
|
|
Re: The Most Important C++ Non-Book Publications...Ever
|
Posted: Sep 4, 2006 7:16 PM
|
|
As for exception-safety language in the standard...
The nothrow guarantee is expressed as "Throws: Nothing ..." and the strong guarantee is expressed as "If an exception is thrown ... there are no effects.", where the ellipsis contains any "unless" or "except" clauses needed. This wording was chosen to fit with how the standard library was already described, and to minimize the number of edits to a document that was supposed to be almost done.
The basic guarantee for things in the standard basically amounts to "X does what the standard says it does." It applies to everything in the standard, for lack of any permission to violate it, and so goes unsaid.
As terse as it is, the standard is still too long, so introducing non-normative definitions of terms not actually used was a nonstarter.
And so it came to be that the phrases "strong guarantee," "basic guarantee," and "nothrow guarantee" don't appear in the standard. Not all that interesting, but there you have it.
|
|