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也无伤大雅。

此博客中的热门博文

在windows下使用llvm+clang

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

tensorflow distributed runtime初窥