Re: Is std::vector contiguous?
From: Mike Wahler (mkwahler_at_mkwahler.net)
Date: 03/06/04
- Next message: Julie: "Re: C++ is slow"
- Previous message: Julie: "Re: [OT] (P.S.) C++ is slow"
- In reply to: Ravi: "Is std::vector contiguous?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 06 Mar 2004 00:47:19 GMT
"Ravi" <rg27@cse.buffalo.edu> wrote in message
news:c2ag9f$j0t$1@prometheus.acsu.buffalo.edu...
> Is a std::vector *guaranteed* to be contiguous in memory? Bjarne
> Stroustrup says it takes constant time to access a vector element and
> that implies contiguous storage but I just wanted to double-check. I
> heard that ISO 14882 standard did not guarantee this. Has this changed?
I think this is mandated in TC1
-Mike
- Next message: Julie: "Re: C++ is slow"
- Previous message: Julie: "Re: [OT] (P.S.) C++ is slow"
- In reply to: Ravi: "Is std::vector contiguous?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|