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