If you are using Perforce (p4), sometimes you need a way to reconcile a folder. Both P4WIN and P4V have this feature to some degree. The command line p4 does not so here’s a small program to do just that. Read more…
You might have known this but I just found this out yesterday.
I knew std::remove doesn’t actually remove anything. The way it is used goes something like this.
// call remove to remove all the elements that equal 1
// remove reorders all elements so that the things you
// want removed are at the end of the vector
std::vector::iterator erase_from = std:remove(int_array.begin(),