Junior — Senior
Implementation of destructor in SharedPointer template
livecode
Task condition
It is necessary to add a destructor method to the template class SharedPointer, which will decrement the reference counter and release the managed resource when the counter reaches zero.