Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

19 May, 2024: Line wrapping has been changed to be more consistent with Usenet standards.
 If you find that it is broken please let me know here rocksolid.nodes.help


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.novabbs.com/devel/article-flat.php?id=1085&group=comp.lang.c%2B%2B#1085

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lynnmcgu...@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


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

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor