[vector] Pre-allocate if iterator has random-access length
1 file changed