[util] Add util allocator.h interface

The allocator is a interface for types that expose allocator functions
for use in container templates like node_map (usage coming soon).

Also added an implementation for the kernel heap allocator.
This commit is contained in:
Justin C. Miller
2022-10-10 20:54:30 -07:00
parent 48e3f9f9d2
commit ba0ce13fe3
4 changed files with 69 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ module("util",
"spinlock.cpp",
],
public_headers = [
"util/allocator.h",
"util/basic_types.h",
"util/bip_buffer.h",
"util/bitset.h",