mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-19 02:17:27 +08:00
cmAlgorithms: Add cmFindNot algorithm.
This commit is contained in:
@@ -295,4 +295,11 @@ std::string cmWrap(char prefix, Range const& r, char suffix, std::string sep)
|
|||||||
return cmWrap(std::string(1, prefix), r, std::string(1, suffix), sep);
|
return cmWrap(std::string(1, prefix), r, std::string(1, suffix), sep);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<typename Range, typename T>
|
||||||
|
typename Range::const_iterator cmFindNot(Range const& r, T const& t)
|
||||||
|
{
|
||||||
|
return std::find_if(r.begin(), r.end(),
|
||||||
|
std::bind1st(std::not_equal_to<T>(), t));
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user