Boost logo

Boost :

Subject: Re: [boost] [container] static_vector: fixed capacity vector update
From: Adam Wulkiewicz (adam.wulkiewicz_at_[hidden])
Date: 2013-01-22 08:33:58


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk