mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
- shrink_to_fit() corresponds to std::vector naming. For DynamicList it is a *binding* request. - shrink_unsafe() simply adjusts the capacity() to match the current size() without forcing a re-allocation. Useful when collapsing to a non-dynamic list to avoid reallocation and copying contents. The memory cleanup will still occur properly at a later stage. - DynamicList::swap(List&) simple recovery of content into a non-dynamic List that also ensures that the capacity is correctly updated. STYLE: promote List::capacity() to public visibility (like std::vector) STYLE: remove unused expandStorage() method - simply a wrapper for resize(capacity())