Resource Acquisition Is Initialization

GPTKB entity

Statements (32)
Predicate Object
gptkbp:instanceOf programming idiom
gptkbp:abbreviation gptkb:RAII
gptkbp:appliesTo mutexes
memory management
file handles
network sockets
gptkbp:category gptkb:programming_language
resource management
gptkbp:contrastsWith garbage collection
manual resource management
gptkbp:firstDescribed 1994
gptkbp:guarantees deterministic cleanup
resources are released
https://www.w3.org/2000/01/rdf-schema#label Resource Acquisition Is Initialization
gptkbp:originatedIn gptkb:C++
gptkbp:proposedBy gptkb:Bjarne_Stroustrup
gptkbp:purpose resource management
exception safety
gptkbp:relatedTo constructor
destructor
object lifetime
gptkbp:seeAlso try-with-resources
shared_ptr
scoped_lock
unique_ptr
using statement
gptkbp:usedIn gptkb:Ada
gptkb:C++
gptkb:Rust
D
gptkbp:bfsParent gptkb:RAII
gptkbp:bfsLayer 7