This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[Fwd: allocators not conformant to standard]


I had sent this to sgi, but recieved no response. I would be happy to
provide patches for this. Please let me know.

--craig

-------- Original Message --------
Subject: allocators not conformant to standard
Date: Thu, 26 Aug 1999 15:17:47 -0700
From: Craig Perras <cperras@watchguard.com>
To: stl@sgi.com

Hello -

I'm writing a persistent object storage program for c++, and am looking
for ways to make stl containers persistent. My current design calls for
passing in the address of the container into the pallocator<T>::allocate
function as the 'hint' (second parameter). Two problems with this: there
is no 'hint' parameter in any of the allocators distributed with your
stl library (as required by the standard), and the address of the
container is not passed in (obviously). The first is a no-brainer (it's
required, after all), and I can't see a problem with implementing the
second, as the address of the container shouldn't be a bad 'hint' to an
optimizing allocator.

Comments? Please let me know if you would like patches, or are willing
to make the requisite changes.

thanks,
--craig

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]