Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Two percent of zero is almost nothing.


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

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

1
"Inside STL: Smart pointers" by Raymond Chen

<ubgivp$2ulm5$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1040&group=comp.lang.c%2B%2B#1040

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lynnmcguire5@gmail.com (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$1@dont-email.me>
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: dont-email.me; posting-host="3ca66a706ef692553ad50a1c32faf9ee";
logging-data="3102405"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+L6SLjHBKoM+YHUWyXgAFywelW1UVMYY0="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
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
https://devblogs.microsoft.com/oldnewthing/20230814-00/

"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
inside."

"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.

Lynn

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor