(C++) Resource Acquisition Is Initialization

January 30, 2018 ยท View on GitHub

The Resource Acquisition Is Initialization (abbreviated to 'RAII') is a technique.

Advice

Reference

  • [1] Bjarne Stroustrup. The C++ Programming Language (4th edition). 2013. ISBN: 978-0-321-56384-2. Chapter 13.7. Advice. page 387: '[15] Use the "Resource Acquisition Is Initialization" technique to manage resources'
  • [2] Bjarne Stroustrup. The C++ Programming Language (4th edition). 2013. ISBN: 978-0-321-56384-2. Chapter 13.7. Advice. page 387: '[18] Use "Resource Acquisition Is Initialization" and exception handlers to maintain invariants'
  • [3] Bjarne Stroustrup. A tour of C++. 2014. ISBN: 978-0-321-958310. Chapter 11.7.4, page 131: 'Use resource handles to manage resources (RAII)'