fn initCapacity(allocator: Allocator, capacity: usize) !Managed

Creates a new Managed with a specific capacity. If capacity < default_capacity then the default capacity will be used instead. The integer value after initializing is 0.

Parameters

allocator: Allocator,
capacity: usize,