https://github.com/kolbewilliams/cpp-cleanup-and-exception-unwinding
These 2 C++ programs demonstrate some behind the scenes operations of C++ that occur if an exception is thrown. The first program demonstrates that objects created in a try block are automatically destroyed if an exception is thrown. The second program demonstrates that unwinding of the stack occurs if an exception is thrown.
https://github.com/kolbewilliams/cpp-cleanup-and-exception-unwinding
cpp
Last synced: over 1 year ago
JSON representation
These 2 C++ programs demonstrate some behind the scenes operations of C++ that occur if an exception is thrown. The first program demonstrates that objects created in a try block are automatically destroyed if an exception is thrown. The second program demonstrates that unwinding of the stack occurs if an exception is thrown.
- Host: GitHub
- URL: https://github.com/kolbewilliams/cpp-cleanup-and-exception-unwinding
- Owner: KolbeWilliams
- Created: 2024-11-17T22:45:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-19T18:22:57.000Z (over 1 year ago)
- Last Synced: 2025-01-24T10:47:03.649Z (over 1 year ago)
- Topics: cpp
- Language: C++
- Homepage:
- Size: 189 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# C-Cleanup-And-Exception-Unwinding
These 2 C++ programs demonstrate some behind the scenes operations of C++ that occur if an exception is thrown. The first program demonstrates that objects created in a try block are automatically destroyed if an exception is thrown. The second program demonstrates that unwinding of the stack occurs if an exception is thrown.