Add example augmented radix tree figure

This commit is contained in:
2024-02-29 16:35:07 -08:00
parent 946694b8a5
commit a4b03bc216
4 changed files with 57 additions and 9 deletions
+4
View File
@@ -435,6 +435,10 @@ struct ReferenceImpl {
using Key = ConflictSet::Key;
inline Key operator"" _s(const char *str, size_t size) {
return {reinterpret_cast<const uint8_t *>(str), int(size)};
}
[[maybe_unused]] static Key toKey(Arena &arena, int n) {
uint8_t *buf = new (arena) uint8_t[sizeof(n)];
memcpy(buf, &n, sizeof(n));