Vec in std::vec rather than std::collections?


#1

Is there any reason that Vec is located in std::vec rather than std::collections, where all other collections are located? Is this simply for backwards compatibility or is it a design choice?


#2

It might be due to the fact that Vec is a very basic “collection”, usually just called a dynamically sized array.