pub fn ensureAddCapacity(r: *Managed, a: *const Managed, b: *const Managed) !void
Use this function before doing add if some of your parameters alias each other
add
r: *Managed
a: *const Managed
b: *const Managed
3345 3346 3347
pub fn ensureAddCapacity(r: *Managed, a: *const Managed, b: *const Managed) !void { try r.ensureCapacity(@max(a.len(), b.len()) + 1); }
Use this function before doing
addif some of your parameters alias each other