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