Resource Acquisition Is Initialisation (RAII)

RAII is Resource Acquisition Is Initialisation. The resource hold by the object is tie to the object’s lifetime. It will prevent resource leaks. This could be achieved by C++ Rule of Thumbs#.

Links to this page
#cpp #memory