summaryrefslogtreecommitdiffstats
path: root/Source/cmAlgorithms.h
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2020-01-02 16:53:27 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2020-01-09 10:19:20 (GMT)
commit968477517edb030cee7f9160286b31d4cda4a516 (patch)
tree855e1bebd0de9caba303a98bd4c109f6b5ecfa1f /Source/cmAlgorithms.h
parent348b60d19deec458e2300949900f682002aecf44 (diff)
downloadCMake-968477517edb030cee7f9160286b31d4cda4a516.zip
CMake-968477517edb030cee7f9160286b31d4cda4a516.tar.gz
CMake-968477517edb030cee7f9160286b31d4cda4a516.tar.bz2
Refactoring: suppress cmEraseIf in favor of cm::erase_if
Diffstat (limited to 'Source/cmAlgorithms.h')
-rw-r--r--Source/cmAlgorithms.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/Source/cmAlgorithms.h b/Source/cmAlgorithms.h
index a179acb..3b0a223 100644
--- a/Source/cmAlgorithms.h
+++ b/Source/cmAlgorithms.h
@@ -37,12 +37,6 @@ FwdIt cmRotate(FwdIt first, FwdIt middle, FwdIt last)
return first;
}
-template <typename Container, typename Predicate>
-void cmEraseIf(Container& cont, Predicate pred)
-{
- cont.erase(std::remove_if(cont.begin(), cont.end(), pred), cont.end());
-}
-
template <typename Range, typename Key>
auto cmContainsImpl(Range const& range, Key const& key, cmOverloadPriority<2>)
-> decltype(range.exists(key))