Patch: stl_vector.h

Dhruv Matani dhruvbird@gmx.net
Sun Oct 17 04:03:00 GMT 2004


On Sat, 2004-10-16 at 23:42, Paolo Carlini wrote:
> Dhruv Matani wrote:
> 
> >Anyhow, what still surprises me is the fact that if you change the
> >ALLOCATE_TEMPLATE macro to std::allocator, it works fine???
> >  
> >
> This is clear: you are simply using the other __uninitialized_fill_n_a
> overload (the only one existing in 3.3 and 3.4, by the way: 'til 4.0 the
> allocator argument was simply dropped)

Ah! I did not notice that there was an overload which had allocator<_Tp>
etc...

So, it seems that the inliner is not inlining the calls to construct()
when called with an allocator from within __ufill_n_a()? Hence the
overloads, or is there some other reason?


> 
> Paolo.
-- 
        -Dhruv Matani.
http://www.geocities.com/dhruvbird/

The price of freedom is responsibility, but it's a bargain, because
freedom is priceless. ~ Hugh Downs



More information about the Libstdc++ mailing list