Open RagnarGrootKoerkamp opened 7 years ago
What about changing
for(size_t i=0; i<v.size(); ++i) v[i] = i;
to
iota(v.begin(), v.end(), 0);
?
For example here: https://github.com/TimonKnigge/TCR/blob/master/snippets/datastructures/unionfind.cpp#L5
@TimonKnigge
More generally, std::equal, std::copy, etc
What about changing
to
?
For example here: https://github.com/TimonKnigge/TCR/blob/master/snippets/datastructures/unionfind.cpp#L5
@TimonKnigge