Some day before I faced this question in a interview. So just guide me.
How to clean initialized resources if exception thrown from constructor in c++?