aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/utility/Utility.hpp
diff options
context:
space:
mode:
author Spartan322 <Megacake1234@gmail.com>2024-01-27 20:53:18 +0100
committer Spartan322 <Megacake1234@gmail.com>2024-01-29 01:58:50 +0100
commit33713273ff32b62b73c71013b63cd9860aae3ff0 (patch)
tree8b226d60263d7108ed6d4a352818a21e5e16f055 /src/openvic-simulation/utility/Utility.hpp
parentbe24f8d1871b318ee241c03f6722ad2394a820f2 (diff)
Add GapDequeadd/gap-deque
Add utility::any_of concept
Diffstat (limited to 'src/openvic-simulation/utility/Utility.hpp')
-rw-r--r--src/openvic-simulation/utility/Utility.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/openvic-simulation/utility/Utility.hpp b/src/openvic-simulation/utility/Utility.hpp
index 8180e55..1b4a632 100644
--- a/src/openvic-simulation/utility/Utility.hpp
+++ b/src/openvic-simulation/utility/Utility.hpp
@@ -72,6 +72,9 @@ namespace OpenVic::utility {
}
}
+ template<typename T, typename... Compare>
+ concept any_of = (std::same_as<T, Compare> || ...);
+
template<typename T, template<typename...> class Z>
struct is_specialization_of : std::false_type {};