MQL5 ReferenceStandard LibraryGeneric Data CollectionsCStack<T>TrimExcess AddCountContainsTrimExcessCopyToClearRemovePushPeekPop TrimExcess Sets the capacity of a stack to the actual number of elements, and thus frees up unused memory. void TrimExcess(); Contains CopyTo