原文链接:http://en.wikibooks.org/wiki/More_C%2B%2B_Idioms/Resource_Acquisition_Is_Initialization Intent To guarantee release of resource(s) at the end of a scope To provide basic exception safety guarantee Also Known As Execute-Around Object Resource Rel…