Re: thread safety of C++ standard library
Re: thread safety of C++ standard library
- Subject: Re: thread safety of C++ standard library
- From: Rush Manbert <email@hidden>
- Date: Tue, 1 Dec 2009 14:07:02 -0800
On Dec 1, 2009, at 1:36 PM, John Weeks wrote:
> In particular, is std::sort thread-safe when working with distinct
> containers? That is, std::sort(iterator, iterator, predicate) where the
> iterators point to different containers.
I think that's your problem. The iterators need to point to the same container. The sort algorithm operates in place.
See this:
http://www.cplusplus.com/reference/algorithm/sort/
- Rush
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden