Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 320 Bytes

raii.md

File metadata and controls

12 lines (7 loc) · 320 Bytes

% RAII

Resource Acquisition is Initialization

[FIXME] Explain the RAII pattern and give best practices.

Whenever possible, tie resource access to guard scopes [FIXME]

[FIXME] Example: Mutex guards guarantee that access to the protected resource only happens when the guard is in scope.

must_use