summaryrefslogtreecommitdiffstats
path: root/include/framework/interface/Shard.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/framework/interface/Shard.h')
-rw-r--r--include/framework/interface/Shard.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/framework/interface/Shard.h b/include/framework/interface/Shard.h
index d3a6cf8..92cdca0 100644
--- a/include/framework/interface/Shard.h
+++ b/include/framework/interface/Shard.h
@@ -33,4 +33,10 @@ concept ShardInterface = requires(S s, S **spp, void *p, bool b, size_t i) {
{s.get_aux_memory_usage()} -> std::convertible_to<size_t>;
};
+template <typename S, typename R>
+concept SortedShardInterface = ShardInterface<S> && requires(S s, R r, R *rp) {
+ {s.lower_bound(r)} -> std::convertible_to<size_t>;
+ {s.upper_bound(r)} -> std::convertible_to<size_t>;
+};
+
}