From 28e1b2d2bfd8c3228b42a151aa746306bd8024ab Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 6 Mar 2026 14:01:52 +0000 Subject: Define SequentialCollection in terms of contiguous_range --- lib/collections.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/collections.h b/lib/collections.h index e182af5..3c80125 100644 --- a/lib/collections.h +++ b/lib/collections.h @@ -10,10 +10,8 @@ #include template -concept SequentialCollection = requires(T c) { - { c.size() } -> std::integral; - { c.data() } -> std::same_as; -}; +concept SequentialCollection + = std::ranges::contiguous_range && std::is_same_v; template concept IterableCollection = std::is_same_v().begin()), decltype(std::declval().end())>; -- cgit v1.3