Abstract
This paper presents a set of concepts and design techniques that has proven successful in implementing and using C++ libraries intended for applications that simultaneously require high reliability and high performance. The notion of exception safety is based on the basic guarantee that maintains basic invariants and avoids resource leaks and the strong guarantee that ensures that a failed operation has no effect.
Acknowledgements
The concepts and techniques described here are the work of many individuals. In particular, Dave Abrahams, Matt Austern, and Greg Colvin made major contributions to the notions of exception safety embodied in the C++ standard library.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Bjarne Stroustrup: The Design and Evolution of C++. Addison-Wesley. 1994. ISBN 0-201-54330-3.
Andrew Koenig (editor): Standard-The C++ Language. ISO/IEC 14882:1998(E). Information Technology Council (NCITS). Washington, DC, USA. http://www.ncits.org/cplusplus.htm.
Bjarne Stroustrup: The C++ Programming Language (Special Edition). Addison-Wesley. 2000. ISBN 0-201-70073-5.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2001 Springer-Verlag Berlin Heidelberg
About this chapter
Cite this chapter
Stroustrup, B. (2001). Exception Safety: Concepts and Techniques. In: Romanovsky, A., Dony, C., Knudsen, J.L., Tripathi, A. (eds) Advances in Exception Handling Techniques. Lecture Notes in Computer Science, vol 2022. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-45407-1_4
Download citation
DOI: https://doi.org/10.1007/3-540-45407-1_4
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-41952-5
Online ISBN: 978-3-540-45407-6
eBook Packages: Springer Book Archive