3 ms·
To clarify, I meant the "overhead" of defining and instantiating a container class for RAII purposes. I hadn't considered the type of overhead you're talking a
by Niten 11y ago
To clarify, I meant the "overhead" of defining and instantiating a container class for RAII purposes.
I hadn't considered the type of overhead you're talking about, which is admittedly more important for the kind of software that tends to get written in C.
- pcwalton 11y agoThere was such a thing (std::finally), but it was removed due to lack of use and maintenance. When your standard library is completely built on RAII, you rarely need it.