C++14 provides a mismatch algorithm with four iterator arguments(), but earlier standard libraries didn't, so provide this needed functionality.
| 193 | // C++14 provides a mismatch algorithm with four iterator arguments(), but earlier |
| 194 | // standard libraries didn't, so provide this needed functionality. |
| 195 | inline std::pair< path::iterator, path::iterator > mismatch(path::iterator it1, path::iterator it1end, path::iterator it2, path::iterator it2end) |
| 196 | { |
| 197 | for (; it1 != it1end && it2 != it2end && path_algorithms::compare_v4(*it1, *it2) == 0;) |
| 198 | { |
| 199 | path_algorithms::increment_v4(it1); |
| 200 | path_algorithms::increment_v4(it2); |
| 201 | } |
| 202 | return std::make_pair(it1, it2); |
| 203 | } |
| 204 | |
| 205 | // normal --------------------------------------------------------------------------// |
| 206 |