container<POD> refactoring
Joe Buck
Joe.Buck@synopsys.COM
Mon Sep 20 18:22:00 GMT 2004
Has anyone done any thinking about adding specializations for avoiding
bloat with containers of POD types? For std::vector, it seems that all
of the out-of-line functions other than the == and < operators depend
only on the size of the POD, and nothing else.
Just specializing container<T*> would be easier, and a win for some.
But a complete job might manage to have one copy, in the library, of
out-of-line code for almost all container<POD> functions that use the
default allocator.
More information about the Libstdc++
mailing list