• Home
  • Posts
  • Contact

Resource Acquisition Is Initialization Pattern

Table of Contents
  • Reference

Note: In C++, this pattern of deallocating resources at the end of an item’s lifetime is sometimes called Resource Acquisition Is Initialization (RAII). The drop function in Rust will be familiar to you if you’ve used RAII patterns.

Reference

https://doc.rust-lang.org/stable/book/ch04-01-what-is-ownership.html


Links to this note

  • Design patterns



© 2025 . Generated with Hugo and Mainroad theme.