I am trying to import a code which uses tbb to my project but I don't understand the notation in parallel for loop.This is the first time I am seeing this notation and haven't seen anywhere else.
tbb::parallel_for( 0, static_cast<int>(centers.size()), 1, [&](int k) {
ColorRep center = centers[k];
What does "[&](int k)"
mean here ? Is it kind of casting ?