24 lines
412 B
C
24 lines
412 B
C
/* $XConsortium: IQueue.C /main/1 1996/07/29 16:53:45 cde-hp $ */
|
|
// 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 */
|