realloc并不是多么有用的设计

"A third kind of request, realloc(3), will resize a chunk, trying to avoid copying the contents if possible. It is seldom used, and has only had a significant impact on performance in a few special situations。" 摘自:《Malloc(3) in modern Virtual Memory environments》
所以C++没有realloc也无伤大雅。

评论

此博客中的热门博文

想换个新路由器

少写代码,多读别人写的代码

这几天玩快手玩的入迷