From 927e065f9829045247be7c0b3296408b6f577c1f Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 12 Jun 2022 13:44:58 +0200 Subject: feat: add reading RLE files --- src/util/algorithm.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/util/algorithm.hpp') 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 constexpr auto container_find(const ContainerType &container, const Value &value) noexcept -> typename ContainerType::const_iterator; +template +requires Container && + std::predicate +constexpr auto +container_find(const ContainerType &container, Predicate predicate) noexcept -> + typename ContainerType::const_iterator; + template requires Container constexpr auto container_has(const ContainerType &container, const Value &value) noexcept -- cgit v1.2.3-18-g5258