(C++) Garbage collection
February 24, 2017 · View on GitHub
(C++) Garbage collection
Garbage collection is the cleanup of released resources, which is (by default) absent in C++.
Advice
- Prefer smart pointers to garbage collection [1]
References
- Bjarne Stroustrup. A tour of C++. 2014. ISBN: 978-0-321-958310. Chapter 11.7.9, page 131: 'Prefer smart pointers to garbage collection'