Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login


<doogie> Thinking is dangerous. It leads to ideas. -- Seen on #Debian

devel / comp.lang.c++ / "Inside STL: Smart pointers" by Raymond Chen

o "Inside STL: Smart pointers" by Raymond ChenLynn McGuire

"Inside STL: Smart pointers" by Raymond Chen


  copy mid

  copy link   Newsgroups: comp.lang.c++
From: (Lynn McGuire)
Newsgroups: comp.lang.c++
Subject: "Inside STL: Smart pointers" by Raymond Chen
Date: Tue, 15 Aug 2023 14:17:12 -0500
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <ubgivp$2ulm5$>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 15 Aug 2023 19:17:13 -0000 (UTC)
Injection-Info:; posting-host="3ca66a706ef692553ad50a1c32faf9ee";
logging-data="3102405"; mail-complaints-to=""; posting-account="U2FsdGVkX1+L6SLjHBKoM+YHUWyXgAFywelW1UVMYY0="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Cancel-Lock: sha1:1q6fjrEIPHOTg3wpfikLJt/iYwg=
Content-Language: en-US
 by: Lynn McGuire - Tue, 15 Aug 2023 19:17 UTC

"Inside STL: Smart pointers" by Raymond Chen

"The C++ standard library comes with a few smart pointer types."

"The simplest one is unique_ptr: This class babysits a raw pointer and
remembers to delete it at destruction (in an appropriate manner).
Dumping the contents of a unique_ptr is just looking at the raw pointer

"The complication is that there is also a deleter object in the
unique_ptr. This deleter object is usually an empty class, so it is
stored as part of a compressed pair."

We have yet to use a smart pointer in our software.


devel / comp.lang.c++ / "Inside STL: Smart pointers" by Raymond Chen


rocksolid light 0.9.81
clearnet tor