|
|
|
|
|
by DougBTX
1482 days ago
|
|
cppreference defines it as: > Resource Acquisition Is Initialization or RAII, is a C++ programming technique[1][2] which binds the life cycle of a resource that must be acquired before use (allocated heap memory, thread of execution, open socket, open file, locked mutex, disk space, database connection—anything that exists in limited supply) to the lifetime of an object. I’d crib the name from Rust, this is ownership, where the object owns the resource. |
|