Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

It is much easier to suggest solutions when you know nothing about the problem.


devel / comp.lang.c++ / "Phantom and indulgent shared pointers" by Raymond Chen

SubjectAuthor
o "Phantom and indulgent shared pointers" by Raymond ChenLynn McGuire

1
"Phantom and indulgent shared pointers" by Raymond Chen

<uc0gr4$21qgn$1@dont-email.me>

  copy mid

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

  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: "Phantom and indulgent shared pointers" by Raymond Chen
Date: Mon, 21 Aug 2023 15:18:44 -0500
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <uc0gr4$21qgn$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 21 Aug 2023 20:18:44 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="536c9b841fc748288ca40e8d95d5fa75";
logging-data="2157079"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+MBkPXZYgLDHgMysAjcF1t/jP9EzMo3OI="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:+zkQME+/hL5TV3HKPmTP3Syi+rM=
Content-Language: en-US
 by: Lynn McGuire - Mon, 21 Aug 2023 20:18 UTC

"Phantom and indulgent shared pointers" by Raymond Chen
https://devblogs.microsoft.com/oldnewthing/20230818-00/

"Last time, we looked at various ways to convert among different
shared_ptrs. We finished with this diagram:"
Null control block Non-null control block
=================== ==================
Null stored pointer Empty Phantom
Non-null stored pointer Indulgent Full

"You are familiar with an empty shared pointer, which manages no object
and has no stored pointer. You are also familiar with a full shared
pointer, which manages an object and has a non-null stored pointer (to
the managed object, or something whose lifetime is controlled by the
managed object). But what about those other two guys?"

Lynn

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor