RAII

RAII, which stands for Resource Acquisition Is Initialization, is a C++ programming idiom that ties the lifespan of a resource to the lifespan of an object. It ensures that resources (like memory or file handles) are properly acquired and released automatically by associating their management with the creation and destruction of objects.

Sign up for updates
straight to your inbox