z-logo
open-access-imgOpen Access
Programming with C++ Exceptions
Author(s) -
Angelika Langer
Publication year - 1999
Language(s) - English
Resource type - Book series
ISBN - 0-7695-0278-4
DOI - 10.1109/tools.1999.10048
When introduced to the language, exception handling added a whole new dimension of programming techniques to C++. Despite of its indisputable advantages, it is still rarely used. This is because exception handling can be quite harmful when used in programs that are not prepared to cope with exceptions. In ANSI C++, we cannot ignore exceptions any longer because certain language constructs, such as new expressions or dynamic-cast as well as the standard library, already raise exceptions. In this lecture we explore exception safety, i.e. what we can and have to do in order to make our programs behave nicely even in presence of exceptions. Another aspect of interest is exception safety in conjunction with template libraries such as the STL. We will see which safety guarantees the STL gives and what it requires of its users. To round up our knowledge of C++ exceptions handling we eventually take a look at some of the less widely known language features such as uncaught exceptions, terminate handlers, and exception specifications.

The content you want is available to Zendy users.

Already have an account? Click here to sign in.
Having issues? You can contact us here
Accelerating Research

Address

John Eccles House
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom