Exception-safe programming
{"Image DocumentName": "Exception-safe programming", "Image ImageDescription": "Definice. (Weak) exception safety. Funkce (oper\u00e1tor, konstruktor) je (slab\u011b) bezpe\u010dn\u00e1, pokud i v p\u0159\u00edpad\u011b v\u00fdjimky zanech\u00e1 ve\u0161ker\u00e1 data v konzistentn\u00edm stavu. Konzistentn\u00ed stav znamen\u00e1 zejm\u00e9na: Nedostupn\u00e1 data byla korektn\u011b destruov\u00e1na a odalokov\u00e1na. Ukazatele nem\u00ed\u0159\u00ed na odalokovan\u00e1 data. Plat\u00ed dal\u0161\u00ed invarianty dan\u00e9 logikou aplikace. Strong exception safety. Funkce je siln\u011b bezpe\u010dn\u00e1, pokud v p\u0159\u00edpad\u011b, \u017ee skon\u010d\u00ed vyvol\u00e1n\u00edm v\u00fdjimky, zanech\u00e1 data ve stejn\u00e9m stavu, ve kter\u00e9m byla p\u0159i jej\u00edm vyvol\u00e1n\u00ed. Naz\u00fdv\u00e1no t\u00e9\u017e Commit-or-rollback semantics", "Image XResolution": "37", "Image YResolution": "37", "Image ResolutionUnit": "Pixels/Centimeter", "Image Software": "SlidePlayer", "Image YCbCrPositioning": "Centered"}