diff options
| author | Maxime Coste <mawww@kakoune.org> | 2018-03-25 16:47:19 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2018-03-25 16:47:19 +1100 |
| commit | 49c52b025f2cb5bd66f729f873d2e690b613fb39 (patch) | |
| tree | 2181f8cc2c43646abbfdc213991028c406d33649 /src/ranges.hh | |
| parent | 435b5b7ff97c7e52d50c002c9480af7066ead2ad (diff) | |
Remove contains_that and use any_of to be closer to the c++ stdlib
Diffstat (limited to 'src/ranges.hh')
| -rw-r--r-- | src/ranges.hh | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/ranges.hh b/src/ranges.hh index a762dd2f..a8dc4487 100644 --- a/src/ranges.hh +++ b/src/ranges.hh @@ -332,13 +332,6 @@ bool contains(Range&& range, const T& value) } template<typename Range, typename T> -bool contains_that(Range&& range, T op) -{ - using std::end; - return find_if(range, op) != end(range); -} - -template<typename Range, typename T> bool all_of(Range&& range, T op) { using std::begin; using std::end; |
