On Thu, Feb 19, 2009 at 10:29 AM, Leo Singer <[email protected]> wrote:

> A std::vector would be unsuitable also because in my actual
> application (not the cooked example I sent out) I need to be able to
> manipulate that memory directly.

Not true; std::vector's memory is guaranteed to be contiguous; you can
treat it exactly as you did your raw array before.

std::vector is *exactly* what you want in this case; it meets every
requirement that you've stated.

-- 
Clark S. Cox III
[email protected]
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to