RAII is an automatic memory (more generally, resource) management scheme, but it isn&#x27;t garbage collection. A garbage collector is a <i>runtime</i> component that reclaims unused storage. What RAII does is, at <i>compile time</i>, insert the appropriate resource-freeing calls at the right places.