pub fn cloneWithAllocator(self: Self, new_allocator: Allocator) Allocator.Error!Self
Creates a copy of this map, using a specified allocator
self: Self
new_allocator: Allocator
447 448 449 450
pub fn cloneWithAllocator(self: Self, new_allocator: Allocator) Allocator.Error!Self { var other = try self.unmanaged.cloneContext(new_allocator, self.ctx); return other.promoteContext(new_allocator, self.ctx); }
Creates a copy of this map, using a specified allocator