cmAlgorithms: Add cmFindNot algorithm.
This commit is contained in:
parent
8c74a41ff3
commit
a3a0a8c222
|
@ -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);
|
||||
}
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue