C++ (Qt)std::for_each (jobs_.constBegin(), jobs_.constEnd(), [this] (const Job &job) { job.first->start (QThread::LowPriority); startTask (job); } );