L
lovecreatesbea...
Can the 3rd and 4th arguments of find_first_of(beg1, end1, beg2, end2)
and find_end(beg1, end1, beg2, end2) be the same? I got an invalid
iterator on following 2 calls:
pos_ic_b = find_first_of(vecIcFile.begin(), vecIcFile.end(), it,
it);
pos_ic_e = find_end(vecIcFile.begin(), vecIcFile.end(), it, it);
But the following 2 calls are successful:
pos_ic_b = lower_bound(vecIcFile.begin(), vecIcFile.end(), *it);
pos_ic_e = upper_bound(vecIcFile.begin(), vecIcFile.end(), *it);
Can't these two pairs of functions do the same task?
and find_end(beg1, end1, beg2, end2) be the same? I got an invalid
iterator on following 2 calls:
pos_ic_b = find_first_of(vecIcFile.begin(), vecIcFile.end(), it,
it);
pos_ic_e = find_end(vecIcFile.begin(), vecIcFile.end(), it, it);
But the following 2 calls are successful:
pos_ic_b = lower_bound(vecIcFile.begin(), vecIcFile.end(), *it);
pos_ic_e = upper_bound(vecIcFile.begin(), vecIcFile.end(), *it);
Can't these two pairs of functions do the same task?