Namespace: Rx – Class: CRxArrayDouble – Header: Rx.Core/RxArrayTypes.h

CRxArrayDouble::ShrinkToFit Method

C++
void ShrinkToFit()

Requests the removal of unused capacity.

It is a non-binding request to reduce Capacity() to Size(). It depends on the implementation if the request is fulfilled.

If reallocation occurs, all iterators, including the past the end iterator, and all references to the elements are invalidated. If no reallocation takes place, no iterators or references are invalidated.