RAII
Everything on SkillVeris tagged RAII — collected across the glossary, study notes, blog, and cheat sheets.
4 resources across 1 library
Interview Questions(4)
What is a Destructor in OOP?
A destructor is a special member function invoked deterministically when an object goes out of scope or is explicitly deleted, releasing resources such as memo…
What is RAII (Resource Acquisition Is Initialization)?
RAII is a C++ idiom where a resource (memory, a file handle, a lock) is acquired in an object’s constructor and automatically released in its destructor, so th…
What is a Smart Pointer?
A smart pointer is a class template that wraps a raw pointer and automatically manages the lifetime of the object it points to, deallocating it when it is no l…
RAII vs Garbage Collection
RAII (Resource Acquisition Is Initialization) ties a resource’s lifetime deterministically to an object’s scope so it is released the instant that object is de…