RAII and Its Advantages
What is RAII?
RAII (Resource Acquisition Is Initialization) is a common pattern in C++ for writing classes that manage resources.
What does this pattern look like?
The resource is stored as a private member of the class.
Then, the cl...
kraljict.hashnode.dev2 min read