From 7307815e99a79dac42f2a9c06b0fe6171ea11ba0 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 1 Jul 2022 16:01:04 +0200 Subject: refactor: use ranges --- src/util/algorithm.hpp | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 src/util/algorithm.hpp (limited to 'src/util/algorithm.hpp') diff --git a/src/util/algorithm.hpp b/src/util/algorithm.hpp deleted file mode 100644 index 60c68e2..0000000 --- a/src/util/algorithm.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#pragma once - -#include "util/concepts.hpp" - -#include - -template -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 - -> bool; - -template -requires Container && HasPushBack && - std::predicate -constexpr auto -container_filter(const ContainerType &container, Predicate predicate) noexcept - -> ContainerType; - -template -requires Container && - std::predicate -constexpr auto -container_filter(const ContainerType &container, Predicate predicate) noexcept - -> ContainerType; - -#include "algorithm_impl.hpp" -- cgit v1.2.3-18-g5258