find_if returns an iterator. You should compare that to load.end () if you want to see if it succeeded. Then just use the iterator.
std::vector<std::string>::iterator vit = std::find_if(load.begin(), load.end(), StartsWith(thisString));
if (vit != load.end ()) {
// do what you want with the iterator here
}
L7Sqr
Practically a Master Poster
657 posts since Feb 2011
Reputation Points: 201
Solved Threads: 124