Resource Acquisition Is Initialization (RAII) is a common idiom used in C++ to manage the lifetime of resources, including memory allocations, file handles or database connections.
As a follow up to this post I wonder how its implementation of make_unique plays with allocating function-temporary buffer …
c++ arrays c++11 unique-ptr raiiI like the idea of const member variables especially when I wrap C functions into classes. The constructor takes a …
c++11 raii move-constructorI have an InfoPath form which I need to conditionally disable it's OnChange events. Since it's not possible to bind …
c# raiiBeing primarily a C++ developer the absence of RAII (Resource Acquisition Is Initialization) in Java and .NET has always bothered …
.net struct destructor raii value-typeIn the C++ code below, am I guaranteed that the ~obj() destructor will be called after the // More code executes? …
c++ raiiThe more we use RAII in C++, the more we find ourselves with destructors that do non-trivial deallocation. Now, deallocation (…
c++ exception raii destructorI've been evaluating various smart pointer implementations (wow, there are a LOT out there) and it seems to me that …
c++ smart-pointers c++03 raii reference-countingI've recently posted a general question about RAII at SO. However, I still have some implementation issues with my HANDLE …
c++ winapi raiiI've noticed RAII has been getting lots of attention on Stackoverflow, but in my circles (mostly C++) RAII is so …
c++ language-agnostic raii