Tag Archives for " RAII "

To RAII or Not to RAII?

Published February 13, 2018 - 18 Comments
raii

RAII is a central concept in C++, that consists in relying on the compiler to call destructors automatically in certain cases. Putting appropriate code in such destructors then relieves us from calling that code – the compiler does it for us. RAII is an idiomatic technique of C++, but can we use RAII for everything? […]