forked from qt-creator/qt-creator
ClangPchManager: Watch unchanged PCHs
Change-Id: I7f4c0f12e4fbf3714e5bfe7655cfa13cac85f71f Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -98,4 +98,22 @@ bool set_intersection_compare(
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
template<typename InputIt1, typename InputIt2, typename BinaryPredicate, typename Callable, typename Value>
|
||||
Value mismatch_collect(InputIt1 first1,
|
||||
InputIt1 last1,
|
||||
InputIt2 first2,
|
||||
InputIt2 last2,
|
||||
Value value,
|
||||
BinaryPredicate predicate,
|
||||
Callable callable)
|
||||
{
|
||||
while (first1 != last1 && first2 != last2) {
|
||||
if (predicate(*first1, *first2))
|
||||
value = callable(*first1, *first2, value);
|
||||
++first1, ++first2;
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
} // namespace ClangBackEnd
|
||||
|
||||
Reference in New Issue
Block a user