Understanding Memory Management, Part 4: Rust Ownership and Borrowing
[Post updated 2025-04-20 to fix some minor errors flagged by Erik Taubeneck] This is the fourth post in my planned multipart series on memory management. Part I covers the basics of memory allocation and how it works in C, and parts II and III covered the basics of C++ memory management, including RAII and smart pointers. These tools do a lot to simplify memory management but because they were added on to the older manual management core of C you're left with a system which is mostly safe if you hold it rig
评论
?
参与讨论