// TSUtility.h: interface for the TSUtility class.
//
/////////////////////////////////////////////////////////////////////////

#ifndef TSUTILITY_H_
#define TSUTILITY_H_

#pragma warning( push, 1 )
#include "DisableSTLWarnings.h"
#include <list>
#pragma warning( pop )
#include "DisableSTLUsageWarnings.h"

template< class T >
void TSDeleteStdList( std::list< T* >& theList )
{
  std::list< T* >::iterator it = theList.begin();
  for ( ; it != theList.end(); it++ )
  {
    delete *it;
  }
  theList.clear();
}

#endif


