RAII: Resource Acquisition is Initialization
This is a great little video from the Back to Basics series offered by CppCon. They even have their slides and code on github.
CppCon has a bunch of other great ‘Back to Basics’ videos that cover a whole host of great topics: safe exception handling, move semantics, type erasure, lambdas, and a bunch of other critical but oft misunderstood elements of C++
In this video, you get a refresher on RAII.
“Resource Allocation is Initialization is one of the cornerstones of C++. What is it, why is it important, and how do we use it in our own code?”