Initial import of the CDE 2.1.30 sources from the Open Group.
This commit is contained in:
23
cde/programs/nsgmls/IQueue.C
Normal file
23
cde/programs/nsgmls/IQueue.C
Normal file
@@ -0,0 +1,23 @@
|
||||
/* $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 */
|
||||
Reference in New Issue
Block a user