Этот урок пока на английском.
Objects that clean up
A class bundles data with the functions allowed to touch it. And when an object goes away, C++ calls its cleanup code for you, every single time. Almost all safe C++ is built on that guarantee.
Этот урок пока на английском.
A class bundles data with the functions allowed to touch it. And when an object goes away, C++ calls its cleanup code for you, every single time. Almost all safe C++ is built on that guarantee.