This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: allocator question, regarding pointer types
- From: Trey Jackson <tjackson at ichips dot intel dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Fri, 13 Feb 2004 10:13:32 -0800
- Subject: Re: allocator question, regarding pointer types
Matt wrote:
,----------------
| Without seeing the source, I can guess: the idea is to write an
| allocator where MyAllocator<T>::pointer is something other
| than T*. For example, it might be a MySmartPointer<T>, or it
| might be T __attribute((weirdmachinemode))__*.
`----------------
Exactly what I was thinking of.
,----------------
| This isn't a completely unreasonable goal. In principle allocators
| are supposed to support this.
|
|
| In practice, supporting this would require some fairly major
| surgery on our container classes. It isn't rocket science, but it
| also isn't completely trivial.
`----------------
Agreed, it's not trivial to add that to the container classes,
but since it does seem to be what's intended by the allocators, is
this kind of support going to be added in the future? If so, any idea
of when?
If someone were to add that kind of support, would it be accepted?
(not that I'm ready/qualified to do it at this point)
TJ
--
Trey Jackson
tjackson@ichips.intel.com
Q: Should I learn the parallel or telemark turn?
A: Shut up and ski!