Article View: comp.std.c++
Article #2745Re: STL allocator spec broken?
From: Anil Vijendran
Date: Tue, 28 Nov 1995 22:28
Date: Tue, 28 Nov 1995 22:28
39 lines
2099 bytes
2099 bytes
>>>>> On 18 Nov 1995 22:24:33 GMT, wilson@cs.utexas.edu (Paul Wilson)
said:
Paul> An example that's closer to my heart is that I want to support STL
Paul> classes with orthogonal persistence. I'd like it to be possible
Paul> for a piece of code to operate on instances of a class irrespective
Paul> of whether they're allocated in transient memory, or in a persistent
Paul> store.
I have a question in relation to this... I've seen persistence
systems/libraries where the allocator or the heap itself is passed
using the placement syntax... for example,
ptr = new (pstore) shape;
I have always been wondering how the constructor of the class could
allocate its data members on the same heap the top level object was
placed in.
I think the placement syntax when extended to persistent stores and
such, whatever goes as the placement-expression, should be passed to
the constructor too.. Or can this be done sans such an extension?
Thanks in advance.
--
Peace.... +<:-)
Anil
___________________________________________________________
Nothing is certain but death and taxes
[ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu.
Contact address: std-c++-request@ncar.ucar.edu. The moderation policy
is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID:
<xg3ohtwl6t0.fsf@marsh.cacs.usl.edu>Path:
arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamageReferences:
<48leps$pv2@boogie.cs.utexas.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage From: akv@cacs.usl.edu (Anil Vijendran) Newsgroups: comp.std.c++ Subject: Re: STL allocator spec broken? Date: 28 Nov 1995 22:28:17 GMT Organization: Center for Adv Computer Studies, Univ. of Southwestern Louisiana Sender: akv@marsh.cacs.usl.edu Approved: clamage@eng.sun.com (comp.std.c++) Message-ID: <xg3ohtwl6t0.fsf@marsh.cacs.usl.edu> References: <48leps$pv2@boogie.cs.utexas.edu> Reply-To: akv@cacs.usl.edu NNTP-Posting-Host: taumet.eng.sun.com Content-Type: text X-Nntp-Posting-Host: marsh.cacs.usl.edu In-Reply-To: wilson@cs.utexas.edu's message of 18 Nov 1995 22:24:33 GMT X-Newsreader: Gnus v5.0.12 Content-Length: 1110 X-Lines: 35 Originator: clamage@taumet