4 ms·
The deletion (or better release as RAII is not just for memory) is implied in the acquisition part. Also RAII is not (just) about scope, but bout tying, recurs
by gpderetta 3y ago
The deletion (or better release as RAII is not just for memory) is implied in the acquisition part.
Also RAII is not (just) about scope, but bout tying, recursively, the lifetime of a resource to another one. You might even have manual destructor calls at the bottom of the tree, the rest would still be RAII. If it was just about scope, higher order functions would be sufficient.