Comment Comment by cmrx64 For example, by explicitly calling shrink_to_fit. So you either have fragmentation, or an extra copy if you're not careful, but none of the solutions let you forget about the detail entirely. parent cmrx64 2 years ago