concurrent_vector and parallel_for

concurrent_vector and parallel_for

Guys, do I understand it correctly that if I have an object of class concurrent_vector filled with some values and if I put this object to parallel_for while specifying blocked_range on this vector then, the task scheduler will automatically spread the load on all available cores?
Thank you.

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Best Reply

A normal vector will do at least as well, but that's the general idea.

Leave a Comment

Please sign in to add a comment. Not a member? Join today