aboutsummaryrefslogtreecommitdiff
path: root/src/util/algorithm.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/algorithm.hpp')
-rw-r--r--src/util/algorithm.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util/algorithm.hpp b/src/util/algorithm.hpp
index e3d8b6f..60c68e2 100644
--- a/src/util/algorithm.hpp
+++ b/src/util/algorithm.hpp
@@ -9,6 +9,13 @@ requires Container<ContainerType>
constexpr auto container_find(const ContainerType &container, const Value &value) noexcept
-> typename ContainerType::const_iterator;
+template <typename ContainerType, typename Predicate>
+requires Container<ContainerType> &&
+ std::predicate<Predicate, typename ContainerType::value_type>
+constexpr auto
+container_find(const ContainerType &container, Predicate predicate) noexcept ->
+ typename ContainerType::const_iterator;
+
template <typename ContainerType, typename Value>
requires Container<ContainerType>
constexpr auto container_has(const ContainerType &container, const Value &value) noexcept