summaryrefslogtreecommitdiff
path: root/src/utils.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.hh')
-rw-r--r--src/utils.hh5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/utils.hh b/src/utils.hh
index 9bb7c007..a71c7700 100644
--- a/src/utils.hh
+++ b/src/utils.hh
@@ -90,6 +90,10 @@ ReversedContainer<Container> reversed(Container&& container)
return ReversedContainer<Container>(container);
}
+// Todo: move that into the following functions once we can remove the decltype
+// return type.
+using std::begin;
+using std::end;
template<typename Container, typename T>
auto find(Container&& container, const T& value) -> decltype(begin(container))
@@ -103,7 +107,6 @@ auto find_if(Container&& container, T op) -> decltype(begin(container))
return std::find_if(begin(container), end(container), op);
}
-
template<typename Container, typename T>
bool contains(Container&& container, const T& value)
{