
22 Jan
2013
22 Jan
'13
1:33 p.m.
Olaf van der Spek wrote:
I would expect sizeof( static_vector ) < sizeof( hybrid_vector )
as hybrid_vector needs to discriminate between using internal and using external storage.
That's just a single bit.
No, because static part will be created on stack and if external storage was created by non-std allocator then hybrid_vector would have a full set of additional members. Regards, Adam