Added destructor to release all remaining items in the vector.

This commit is contained in:
jwellbelove 2016-12-12 11:01:53 +00:00
parent db375602d4
commit 0bd7da7aae

View File

@ -115,6 +115,14 @@ namespace etl
ivector<T>::assign(other.begin(), other.end());
}
//*************************************************************************
/// Destructor.
//*************************************************************************
~vector()
{
ivector<T>::clear();
}
//*************************************************************************
/// Assignment operator.
//*************************************************************************