pub fn create(graph: *const Graph, comptime T: type) *T graph: *const GraphT: type187
188
189 pub fn create(graph: *const Graph, comptime T: type) *T {
return @ptrCast(graph.arena.allocBytesAligned(.of(T), @sizeOf(T), @returnAddress()) catch @panic("OOM"));
}
Allocates using the global process arena, failing the build on allocation failure.