mark as deleted and zero content on deletion instead of shifting everything
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user