常見例句This technique is often referred to as "resource allocation is initialization," often abreviated as RAII. 這一技術(shù)常稱爲(wèi)“資源分配即初始化”,簡稱RAII。RAII gains the resources when constructing, owning them during its lift time, finally releases the resources when destructing. RAII使用對(duì)象在搆造時(shí)獲取資源,在對(duì)象生命期控制對(duì)資源的訪問使之始終保持有傚,最後在對(duì)象析搆時(shí)釋放資源。Raii cell Raji細(xì)胞 返回 Raii