Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
mwkaufma
1y ago
0 comments
Share
Won't the final result allocate?
0 comments
default
newest
oldest
steveklabnik
1y ago
It won't allocate in this case because it's still a vec of foo at the end, so we know it has enough space. If it were a different type, it may or may not allocate, depending on if it had enough capacity.
j
/
k
navigate · click thread line to collapse