pub fn toManaged(self: *Self, gpa: Allocator) AlignedManaged(T, alignment) 716
717
718
719
720
721
722
723 pub fn toManaged(self: *Self, gpa: Allocator) AlignedManaged(T, alignment) {
return .{
.items = self.items,
.capacity = self.capacity,
.allocator = gpa,
.pointer_stability = self.pointer_stability,
};
}
Convert this list into an analogous memory-managed one. The returned list has ownership of the underlying memory.