Re: Running out of memory on stack in C++ routine invoked within Cocoa NSOperation
Re: Running out of memory on stack in C++ routine invoked within Cocoa NSOperation
- Subject: Re: Running out of memory on stack in C++ routine invoked within Cocoa NSOperation
- From: Clark Cox <email@hidden>
- Date: Thu, 19 Feb 2009 17:37:55 -0800
On Thu, Feb 19, 2009 at 10:29 AM, Leo Singer <email@hidden> 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@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden