Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| c_exceptions [2018/02/02 10:09] – rpjday | c_exceptions [2018/02/02 11:02] (current) – [Guarantees] rpjday | ||
|---|---|---|---|
| Line 17: | Line 17: | ||
| * Return a legal value and leave the program in an "error state" ('' | * Return a legal value and leave the program in an "error state" ('' | ||
| * Call an error-handler routine. | * Call an error-handler routine. | ||
| - | | + | |
| + | ===== Guarantees ===== | ||
| + | |||
| + | C++ standard library provides one of the following guarantees for every library operation: | ||
| + | |||
| + | | ||
| + | * //strong// for key operations: in addition to providing the basic guarantee, either the operation succeeds, or it has no effect. This guarantee is provided for key operations, such as '' | ||
| + | * //nothrow// for some operations: in addition to providing the basic guarantee, some operations are guaranteed not to throw an exception. This guarantee is provided for a few simple operations, such as '' | ||