|
Boost : |
Subject: Re: [boost] embedded_vector (was: Re: [rfc] sized_array)
From: Frank Mori Hess (fmhess_at_[hidden])
Date: 2010-02-09 08:01:18
On Tuesday 09 February 2010, strasser_at_[hidden] wrote:
> Zitat von Tim Blechmann <tim_at_[hidden]>:
> >>> [...] in contrary to std::vector, which is only required to
> >>> support random-access iterators (which are implementation-defined),
> >>> my class guaranties to allocate the data in one consecutive memory
> >>> area. [...]
> >>
> >> As of C++03, std::vector is contiguous, so I'm not convinced by the
> >> utility of this.
> >
> > interesting ... it seems, my assumption was based on c++98
>
> I don't think that was changed from 98 to 03.
> but your description reminded me of something I do think would be a
> useful addition to Boost.Array.
According to the following link, the contiguousness of std::vector was made
explicit in c++03:
http://herbsutter.wordpress.com/2008/04/07/cringe-not-vectors-are-guaranteed-to-be-contiguous/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk