Monday 4 July 2011

[YAGE] Memory Management - RAII

Back to YAGE and memory management methods and this time it'll be a short introduction to RAII.

So what's RAII?
RAII[1][2] which stands for Resource Acquisition Is Initialization is a widely used C++ idiom[3]. The weird name may not tell much. But, if used under some strict conditions, this idiom grants the absolute respect of the resources ownership -pointers included- which spares the developer all the headache of monitoring dynamic memory use.