[PATCH] Move stl_uninitialized.h extensions to <ext/memory>
Phil Edwards
pedwards@disaster.jaj.com
Sat Dec 29 15:30:00 GMT 2001
On Sat, Dec 29, 2001 at 07:59:46PM +0100, Gabriel Dos Reis wrote:
> Paolo Carlini <pcarlini@unitus.it> writes:
>
> | Hi,
> |
> | this one moves some extensions present in stl_uninitialized.h to ext/memory. I
> | followed the very same approach used for stl_algo.h.
> |
> | A small surprise came from discovering that the implementation of deque in fact
> | uses such extensions! (I learned that by grepping, since we are not currently
> | testing much deque... :-(
>
> Thanks Paolo.
>
> Before your patch goes in, we should study, understand and make
> surgery on std::deque, as there is no point in moving extensions away
> if we were to bring them back.
Such surgery is happening right now. I've been adding doxygen-aware
comments to stl_deque.h since yesterday, and cleaning up the spacing as I go.
Something useful should be checked in soon.
(I'm doing this as part of PR 1853. The interesting memory tricks played
by deque<> have gone undocumented for far too long.)
Phil
--
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams
More information about the Libstdc++
mailing list