diff options
| author | Douglas B. Rumbaugh <douglas@t480.douglasrumbaugh.com> | 2023-11-02 08:01:45 -0400 |
|---|---|---|
| committer | Douglas B. Rumbaugh <douglas@t480.douglasrumbaugh.com> | 2023-11-02 08:01:45 -0400 |
| commit | 0b723322a611de83872dd83b55d2e10e8886a283 (patch) | |
| tree | 3cf3f6d11f23b9743c28585627de341d8fe7848e /include/framework/interface | |
| parent | 83ca486048a5053d8c75bb5041091edb1b183a85 (diff) | |
| download | dynamic-extension-0b723322a611de83872dd83b55d2e10e8886a283.tar.gz | |
started refactoring queries interface
Diffstat (limited to 'include/framework/interface')
| -rw-r--r-- | include/framework/interface/Shard.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/framework/interface/Shard.h b/include/framework/interface/Shard.h index d3a6cf8..40a696b 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>; +} + } |