A resource is anything a program acquires and must give back: a block of heap memory, an open file, a lock, a network connection. Resource acquisition is initialisation (RAII) is the rule that every resource is acquired by the constructor of an object that owns it, and released by that object’s destructor.
书籍暂未推出简体中文版——当前显示英文版。
Computer Science · 术语表
什么是 Resource, RAII?
又称: resource · resource acquisition is initialisation (RAII)