diff options
Diffstat (limited to 'include/framework/ShardInterface.h')
| -rw-r--r-- | include/framework/ShardInterface.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/framework/ShardInterface.h b/include/framework/ShardInterface.h index 1f48a45..3aa62df 100644 --- a/include/framework/ShardInterface.h +++ b/include/framework/ShardInterface.h @@ -11,12 +11,16 @@ #include <concepts> #include "util/types.h" +#include "framework/RecordInterface.h" -template <typename S> -concept ShardInterface = requires(S s, void *p) { - s.point_lookup(); +namespace de { +//template <template<typename> typename S, typename R> +template <typename S> +concept ShardInterface = requires(S s, void *p, bool b) { + //{s.point_lookup(r, b) } -> std::same_as<R*>; {s.get_record_count()} -> std::convertible_to<size_t>; - {s.get_tombstone_count()} -> std::convertible_to<size_t>; {s.get_memory_usage()} -> std::convertible_to<size_t>; }; + +} |