Tools.h++ Manual

104011 Tandem Computers Incorporated 22-69
22
RWTQueue<T,C>
Synopsis
#include <rw/tqueue.h>
RWTQueue<T, C> queue;
Description This class represents a parameterized queue. Not only can the type of object
inserted into the queue be parameterized, but also the implementation.
Parameter
T
represents the type of object in the queue, either a class or built in
type. The class
T
must have:
well-defined copy semantics (
T::T(const T&)
or equiv.);
well-defined assignment semantics (
T::operator=(const T&)
or equiv.);
any other semantics required by class
C
.
Parameter
C
represents the class used for implementation. Useful choices are
RWTValSlist<T>
or
RWTValDlist<T>
. Vectors, such as
RWTValOrderedVector<T>
, can also be used, but tend to be less efficient at
removing an object from the front of the list.