22 lines
346 B
C++
22 lines
346 B
C++
// Copyright (c) 1994 James Clark
|
|
// See the file COPYING for copying permission.
|
|
|
|
#ifndef IQueue_DEF_INCLUDED
|
|
#define IQueue_DEF_INCLUDED 1
|
|
|
|
#ifdef SP_NAMESPACE
|
|
namespace SP_NAMESPACE {
|
|
#endif
|
|
|
|
template<class T>
|
|
void IQueue<T>::clear()
|
|
{
|
|
while (!empty())
|
|
delete get();
|
|
}
|
|
|
|
#ifdef SP_NAMESPACE
|
|
}
|
|
#endif
|
|
|
|
#endif /* not IQueue_DEF_INCLUDED */
|