I think Array
is what you're looking for. Vector
is explicitly designed as a fixed size collection (with size statically defined and part of the type).
The constraints on the Size
parameter are defined by SE-0452: Integer Generic Parameters and may be relaxed in the future, but Vector would still remain fixed size.