json
json copied to clipboard
No object::shrink_to_fit?
Why is there no object::shrink_to_fit
?
Do any associative containers have that? I've checked Unordered, and it's do not.
the question is not if associative containers have that, but rather whether vectors and vector-like containers have that. json::object
is not node-based it is linear
boost::unordered_flat_map
has rehash
which apprarently can do the equivalent of shrink_to_fit
and more. Maybe we should explore this.