User Tools

Site Tools


2014:exception_safety_guarantees_in_c

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
2014:exception_safety_guarantees_in_c [2013/11/05 11:25] – created jonjagger2014:exception_safety_guarantees_in_c [2016/06/11 14:05] (current) – external edit 127.0.0.1
Line 6: Line 6:
 **Duration**: 90 mins\\ **Duration**: 90 mins\\
 **Description**: \\ **Description**: \\
-When learning programming C++ there is the point where exceptions and try-catch are introduced. The classes I've seen just explain the language syntax around throw and catch, but don't go tell you that your code usually doesn't need try-catch. The talk discusses what the basic, strong and nofail exception safety guarantees are and how to implement them in C++ without much try-catch. Of course the "resource aquisition is initialization(RAII) principle will be the solution here.\\+When learning programming C++ there is the point where exceptions and try-catch are introduced. The classes I've seen just explain the language syntax around throw and catch, but don't go tell you that your code usually doesn't need try-catch. The talk discusses what the basic, strong and nofail exception safety guarantees are and how to implement them in C++ without much try-catch. Of course the 'resource aquisition is initialization(RAII) principle will be the solution here.\\
 \\ \\
 In detail the talk will cover what STL containers and other classes do in case of exceptions and what that means regarding the exception safety guarantees. The distinction between copyable and move-only types is of interest here. Canonical implementations for copy/move constructors and copy/move assignment will be shown which enable to write own classes with value-semantics. This provides for exception safe use of these classes.\\ In detail the talk will cover what STL containers and other classes do in case of exceptions and what that means regarding the exception safety guarantees. The distinction between copyable and move-only types is of interest here. Canonical implementations for copy/move constructors and copy/move assignment will be shown which enable to write own classes with value-semantics. This provides for exception safe use of these classes.\\
2014/exception_safety_guarantees_in_c.1383650711.txt.gz · Last modified: 2016/06/11 14:05 (external edit)