0
私はペアのベクトルを反復処理しようとしていますし、私はこれを行うことにより、ペア内の要素の一つをインクリメントする必要があります。インクリメント値
for (std::vector<std::pair<Process *, int> >::const_iterator it = process.begin(); it != process.end(); it++) {
if (queue.size() == 0)
break;
while (queue.size() > 0 && it->second < threadsPerProcess * 2) {
it->first->send(queue.front());
queue.pop_front();
++it->second; // value i am trying to increment
}
}
誰かが私がやっているものを私に言うことができます違う?