Does TBB requires C++0x support in compiler? if so, is there a way to still use TBB templates without C++0x?
Link Copied
templatevoid parallel_reduce( const Range& range, Body& body ) { internal::start_reduce ::run( range, body, __TBB_DEFAULT_PARTITIONER() ); }
To the new interface to maximize the advantage of lambda constructs:
templateValue parallel_reduce( const Range& range, const Value& identity, const RealBody& real_body, const Reduction& reduction ) { internal::lambda_reduce_body body(identity, real_body, reduction); internal::start_reduce ,const __TBB_DEFAULT_PARTITIONER> ::run(range, body, __TBB_DEFAULT_PARTITIONER() ); return body.result(); }
So if you're currently using TBB but have not made the transition to a compiler that provides lambda support, you should be just fine. Andwhen you're ready to advance your compiler and try lambdas,TBB will be ready for you .
"Does TBB requires C++0x support in compiler?"
No.
templatevoid parallel_reduce( const Range& range, Body& body ) { internal::start_reduce ::run( range, body, __TBB_DEFAULT_PARTITIONER() ); }
To the new interface to maximize the advantage of lambda constructs:
templateValue parallel_reduce( const Range& range, const Value& identity, const RealBody& real_body, const Reduction& reduction ) { internal::lambda_reduce_body body(identity, real_body, reduction); internal::start_reduce ,const __TBB_DEFAULT_PARTITIONER> ::run(range, body, __TBB_DEFAULT_PARTITIONER() ); return body.result(); }
So if you're currently using TBB but have not made the transition to a compiler that provides lambda support, you should be just fine. Andwhen you're ready to advance your compiler and try lambdas,TBB will be ready for you .
For more complete information about compiler optimizations, see our Optimization Notice.