Download MetaTrader 5

TrimExcess

Sets the capacity of a list to the actual number of elements, and thus frees up unused memory.

void TrimExcess();