aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorPhil Christensen <philc@microsoft.com>2018-11-15 15:28:58 -0800
committerGitHub <noreply@github.com>2018-11-15 15:28:58 -0800
commite1028651d073b6cfa025c3207d3c4708f2bc8ae7 (patch)
treeaeebf7e36bc1ccfb72645a688de8640fb18b1482 /toolsrc/include
parent27ec00ff3dd445878f2816284239fe4ad02f8ac5 (diff)
parent02839ae4a83d505bae17d5856ce851af29c89c65 (diff)
downloadvcpkg-e1028651d073b6cfa025c3207d3c4708f2bc8ae7.tar.gz
vcpkg-e1028651d073b6cfa025c3207d3c4708f2bc8ae7.zip
Merge pull request #4737 from BillyONeal/erase_all_the_things
Use remove_if instead of partition when filtering containers.
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg/base/util.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/toolsrc/include/vcpkg/base/util.h b/toolsrc/include/vcpkg/base/util.h
index 7266fbbc6..65ce02b99 100644
--- a/toolsrc/include/vcpkg/base/util.h
+++ b/toolsrc/include/vcpkg/base/util.h
@@ -72,18 +72,6 @@ namespace vcpkg::Util
}
template<class Container, class Pred>
- void stable_keep_if(Container& cont, Pred pred)
- {
- cont.erase(std::stable_partition(cont.begin(), cont.end(), pred), cont.end());
- }
-
- template<class Container, class Pred>
- void unstable_keep_if(Container& cont, Pred pred)
- {
- cont.erase(std::partition(cont.begin(), cont.end(), pred), cont.end());
- }
-
- template<class Container, class Pred>
void erase_remove_if(Container& cont, Pred pred)
{
cont.erase(std::remove_if(cont.begin(), cont.end(), pred), cont.end());