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