From 1d2ad781398d2a8743899eb54153998ca03ac090 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Wed, 2 Apr 2025 05:25:26 -0500 Subject: More work on hash maps. --- include/fud_algorithm.hpp | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) (limited to 'include/fud_algorithm.hpp') diff --git a/include/fud_algorithm.hpp b/include/fud_algorithm.hpp index 82e98cb..ef55d21 100644 --- a/include/fud_algorithm.hpp +++ b/include/fud_algorithm.hpp @@ -18,6 +18,7 @@ #ifndef FUD_ALGORITHM_HPP #define FUD_ALGORITHM_HPP +#include "fud_algorithm_no_dep.hpp" // IWYU pragma: export #include "fud_option.hpp" #include "fud_span.hpp" @@ -26,32 +27,6 @@ namespace fud { -template -concept LessThanComparable = - requires(T lhs, T rhs) { - { lhs < rhs } -> std::convertible_to; -}; - -template -inline const T& min(const T& lhs, const T& rhs) { - if (lhs < rhs) { - // NOLINTNEXTLINE(bugprone-return-const-ref-from-parameter) - return lhs; - } - // NOLINTNEXTLINE(bugprone-return-const-ref-from-parameter) - return rhs; -} - -template -inline const T& max(const T& lhs, const T& rhs) { - if (lhs < rhs) { - // NOLINTNEXTLINE(bugprone-return-const-ref-from-parameter) - return rhs; - } - // NOLINTNEXTLINE(bugprone-return-const-ref-from-parameter) - return lhs; -} - template class Iota { public: -- cgit v1.2.3