The Vec explicit-value constructor should
use its size parameter to distinguish between
two cases: the empty case and the non-empty case.
Here is one way you might do so:
- Set mySize to size;
- If size is positive:
- Dynamically allocate an array of size values of type Item,
and store the address of the array in myArray; and
- Set each of the Items in that array to zero.