The standard isn't yet that the memory is to be contiguous, though this
is expected for the 2008 standard. However, the member function data()
will provide a pointer to contiguous memory sufficient to hold size()
elements.
Chad
> On Sat, 22 Sep 2007, strk wrote:
>
> > On Fri, Sep 21, 2007 at 08:18:41PM +0000, Bastiaan Jacques wrote:
> >> * backend/render_handler_tri.{cpp,h}: Don't assume the
> >> elements in a std::vector are stored in contiguous memory.
> >
> > I belive elements of a std::vector are assured to be stored in contiguous
> > memory
> > by specs.
>
> It is my understanding that it is not currently part of the C++ standard
> specification, although an effort is underway to include it. So there is
> no guarantee that that is true, although I'm fairly sure libstdc++ does
> implement it in contiguous memory.
>
> Bastiaan
>
>
> _______________________________________________
> Gnash-commit mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/gnash-commit
_______________________________________________
Gnash-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-commit