Skip to content

Intent ​

Resource Acquisition Is Initialization pattern can be used to implement exception safe resource management.

Class diagram ​

alt text

Applicability ​

Use the Resource Acquisition Is Initialization pattern when

  • You have resources that must be closed in every condition