layout | title | folder | permalink | categories | tags | |
---|---|---|---|---|---|---|
pattern |
Resource Acquisition Is Initialization |
resource-acquisition-is-initialization |
/patterns/resource-acquisition-is-initialization/ |
Idiom |
|
Resource Acquisition Is Initialization pattern can be used to implement exception safe resource management.
Use the Resource Acquisition Is Initialization pattern when
- You have resources that must be closed in every condition