From 64aa4ba11ced78d4313ce5c0f7bb81301b39100b Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Fri, 18 Apr 2025 03:46:34 -0400 Subject: [PATCH] short description of auto_ptr --- lectures/27_garbage_collection/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lectures/27_garbage_collection/README.md b/lectures/27_garbage_collection/README.md index 5a1af22..e149efb 100644 --- a/lectures/27_garbage_collection/README.md +++ b/lectures/27_garbage_collection/README.md @@ -342,6 +342,8 @@ int main() { - std::scoped_ptr: (Boost) “Remembers” to delete things when they go out of scope. Alternate to auto_ptr. Cannot be copied. +- std::auto_ptr: was C++98’s first smart pointer, but it's broken and removed now. + ## 27.15 Exercise In the following [program](shared_ptr1.cpp), the use count will be printed 3 times. What exact value will be printed each time?