umap 和 set 释放空间

· · 个人记录

umap

mp.clear();
mp.rehash(0);

vector

vec.clear();
vec.shrink_to_fit();

P10834 不释放空间 & 释放空间。

感谢 bluewindde 大手子。