![]() This means, that variables can denote only some objects. ![]() Variable is created by declaring a reference or an object. Just to clarify things, references and functions are not objects even though some of their properties can be similar. Release of the storage means, that storage ends its duration (by for example performing delete expression, or exiting the scope). Storage re-usage simply means, that in place of the storage new object is being created. You might be also thinking, what does it mean to reuse or release the storage. ![]() This is, however, going to change in the future (with C++20 or C++23), so it’s good to assume also now, that destructor ends a lifetime of an object (such assumption won’t cause your program UB). Objects of built-in types do not have destructors, but they have got a pseudo-destructor, call to which is a no-op. Technically speaking, not all objects can be destroyed by calling the destructor.
0 Comments
Leave a Reply. |