pub fn clone(self: Self, gpa: Allocator) Oom!Self 832
833
834
835
836 pub fn clone(self: Self, gpa: Allocator) Oom!Self {
if (@sizeOf(ByIndexContext) != 0)
@compileError("Cannot infer context " ++ @typeName(Context) ++ ", call cloneContext instead.");
return self.cloneContext(gpa, undefined);
}
Create a copy of the hash map which can be modified separately. The copy uses the same context as this instance, but is allocated with the provided allocator.