Reading · 11 min
Classes, references and RAII
You are previewing a free lesson. Enrol to save progress and take quizzes.
RAII means a resource is tied to an object's lifetime: when the object goes out of scope, its destructor releases the resource. std::unique_ptr and std::vector apply this for memory, so you rarely need new and delete.
