Hacker News new | ask | show | jobs
by intea 2708 days ago
C++ does not have garbage collection of any sorts. Objects leave the scope and are destroyed, however the order in which they are destroyed is not defined by the standard.
1 comments

C++ has a garbage collection interface API since ISO C++11, it is up to the respective implementation to provide an optional implementation.