summaryrefslogtreecommitdiffstats
path: root/include/framework/interface
diff options
context:
space:
mode:
authorDouglas Rumbaugh <dbr4@psu.edu>2024-03-20 17:30:14 -0400
committerDouglas Rumbaugh <dbr4@psu.edu>2024-03-20 17:30:14 -0400
commit9fe190f5d500e22b0894095e7c917f9c652e0a64 (patch)
tree79d1c11a59d8279989bd6d7aafbf8ad938687fcc /include/framework/interface
parent405bf4a20b4a22a6bb4b60b730b6a7e901fdccf6 (diff)
downloaddynamic-extension-9fe190f5d500e22b0894095e7c917f9c652e0a64.tar.gz
Updates/progress towards succinct trie support
Diffstat (limited to 'include/framework/interface')
-rw-r--r--include/framework/interface/Record.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/framework/interface/Record.h b/include/framework/interface/Record.h
index 5b9f307..f4105c6 100644
--- a/include/framework/interface/Record.h
+++ b/include/framework/interface/Record.h
@@ -97,9 +97,17 @@ template <typename K, typename V>
struct Record {
K key;
V value;
- uint32_t header = 0;
- inline bool operator<(const Record& other) const {
+ Record &operator=(const Record &other) {
+ this->key = K();
+
+ this->key = other.key;
+ this->value = other.value;
+
+ return *this;
+ }
+
+ inline bool operator<(const Record& other) const {
return key < other.key || (key == other.key && value < other.value);
}