Skip to content

S) RAII

kalinosia edited this page Mar 13, 2021 · 1 revision

Resource Acquisition Is Initialization *each resource maps to particular handler

  • acquire in c-tor
  • release in d-tor Benefits
  • shorter code (automation)
  • clear responsibilities
  • applies to any resource
  • no need for finally sections
  • predictable release times #MORE!!!!!!!!!?????????????

Clone this wiki locally