Applicable Resource Allocation Is Initialization(RAII)
ForconceptofRAII,pleaserefertowikipedia.ThisarticlefocusonhowRAIIcanbeusedtosolveproblems.RAIIcanbeusedtoreleaseresourceinanycaseeasily.It'sdifficulttoguaranteethatcertainresourceisreleasedormaintaint