Boost logo

Boost Users :

From: Daryle Walker (darylew_at_[hidden])
Date: 2003-06-10 15:19:54


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net