From 82385541a9b1f91f5b0afef0503ec75345766e05 Mon Sep 17 00:00:00 2001 From: "matthias@arch" Date: Sat, 5 Nov 2022 20:45:35 +0100 Subject: [PATCH] Added range concepts --- src/concepts.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/concepts.hpp b/src/concepts.hpp index f809800..4bbcc2a 100644 --- a/src/concepts.hpp +++ b/src/concepts.hpp @@ -14,6 +14,16 @@ namespace gz::util { /// Forward range holding integers template concept IntegralForwardRange = std::ranges::forward_range and std::integral>; + + /// Forward range holding ValueType + template + concept ForwardRange = std::ranges::forward_range and std::same_as, ValueType>; + + /// Contiguous range holding ValueType + template + concept ContiguousRange = std::ranges::contiguous_range and std::same_as, ValueType>; + + } /**