This is probably a stupid question, but after staring at miles of template errors ...
given a tbb::concurrent_hash_map map I want to perform a parallel_reduce on the keys:
tbb::parallel_reduce( map.range(), Body );
where Body contains:
void operator()(tbb::concurrent_hash_map::range_type range) const
for (tbb::concurrent_hash_map::iterator size=range.begin(); size != range.end(); ++size) //...
Apparently map.range() doesn't give the right kind of range object for parallel_reduce??
So into which type and how am I supposed to convert the retval of map.range() so I can plug it into
P.S.: It'd be neat to have an example which actually uses a container and it's range....