diff options
| -rw-r--r-- | toolsrc/include/vcpkg_Util.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/toolsrc/include/vcpkg_Util.h b/toolsrc/include/vcpkg_Util.h index 06cac21ad..bb93413ed 100644 --- a/toolsrc/include/vcpkg_Util.h +++ b/toolsrc/include/vcpkg_Util.h @@ -27,4 +27,16 @@ namespace vcpkg::Util { cont.erase(std::remove_if(cont.begin(), cont.end(), pred), cont.end()); } + + template<class Container, class Pred> + auto find_if(const Container& cont, Pred pred) + { + return std::find_if(cont.cbegin(), cont.cend(), pred); + } + + template<class Container, class Pred> + auto find_if_not(const Container& cont, Pred pred) + { + return std::find_if_not(cont.cbegin(), cont.cend(), pred); + } }
\ No newline at end of file |
