Make allocate take a template type

So we use the right alignment
This commit is contained in:
2025-08-15 13:31:45 -04:00
parent 52f0eeee1f
commit 8e33b477eb
5 changed files with 117 additions and 63 deletions

View File

@@ -16,7 +16,7 @@ int main() {
// Arena allocator benchmark
ArenaAllocator arena;
bench.run("ArenaAllocator", [&] {
void *ptr = arena.allocate(alloc_size);
void *ptr = arena.allocate_raw(alloc_size);
ankerl::nanobench::doNotOptimizeAway(ptr);
});
}