MCPcopy Create free account
hub / github.com/boostorg/filesystem / mismatch

Function mismatch

src/path.cpp:195–203  ·  view source on GitHub ↗

C++14 provides a mismatch algorithm with four iterator arguments(), but earlier standard libraries didn't, so provide this needed functionality.

Source from the content-addressed store, hash-verified

193// C++14 provides a mismatch algorithm with four iterator arguments(), but earlier
194// standard libraries didn't, so provide this needed functionality.
195inline 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

Callers 1

lexically_relativeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected