locode
  • Questions
  • Leaderboard
  • Blog

Does C++ support 'finally' blocks? (And what's this 'RAII' I keep hearing about?)

asked17 years ago
last updated14 years ago
viewed289.2k times
Up Vote325Down Vote

Does C++ support 'finally' blocks?

What is the RAII idiom?

What is the difference between C++'s RAII idiom and C#'s 'using' statement?

c++exceptionraiifinallyc++-faq
edited
14 Sep at 13:33
from the blog
Generating the PvQ Leaderboard
Getting Help in the Age of LLMs
About
Blog
Archive
Privacy
powered by blazor vue
Site Design © 2024 locode.dev, content licensed under CC BY-SA.