Comment by slaymaker1907

Comment by slaymaker1907 6 hours ago

1 reply

A vector of boxes is beneficial if you need to move objects around. If each T is 1000B or something, you really don’t want to copy or even do true moves in memory.

Hell, even if you’re not moving things around explicitly, don’t forget that vectors resize themselves. If you use Box, then these resizes will be less painful with large objects.

zamalek 6 hours ago

Of course, the language lets you decide. I think this anti feature is actually a feature.