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

Does C++ support ‘finally‘ blocks?

What is the RAII idiom?

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

16 Answers
16

Leave a Comment