10 Jun
2003
10 Jun
'03
8:19 p.m.
On Tuesday, June 10, 2003, at 3:20 PM, Duane Murphy wrote: [SNIP]
[ I expect a correction flood on this one. :-) ]
In fact, vector<> is guaranteed to be contiguous. It is the only standard container that satisfies this requirement.
I think the contiguous requirement is only given in a correction report, not in the standard itself. But my point was that if the OP only needed a simple byte bucket, he could just allocate one without complicating matters with a full-blown object. It's more efficient because the multi-byte processing function only works with simple byte buckets. Daryle