The Expr destructor
Manipulate the use count of the corresponding ExprBase object
Destroy it if (and only if) the use count becomes zero
Expr::~Expr()
{
if (--p->use == 0)
delete p;
}
Previous slide
Next slide
Back to first slide
View graphic version