mark as deleted and zero content on deletion instead of shifting everything

This commit is contained in:
2026-04-25 13:37:53 +02:00
parent 85541e1db4
commit 48fc35e16c
4 changed files with 43 additions and 58 deletions

View File

@@ -2,7 +2,6 @@
#include <cstdint>
#include <iostream>
#include <string>
#define ASSERT(cond) \
do { \
@@ -25,11 +24,3 @@ static_assert(sizeof(float) * 8 == 32);
using f32 = float;
static_assert(sizeof(double) * 8 == 64);
using f64 = double;
template <typename T> constexpr char *to_char_ptr(T *ptr) noexcept {
return reinterpret_cast<char *>(ptr);
}
template <typename T> constexpr const char *to_char_ptr(const T *ptr) noexcept {
return reinterpret_cast<const char *>(ptr);
}