init delete cpp