45 #include <QtCore/qlist.h> const T & head() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
#define QT_END_NAMESPACE
This macro expands to.
The QQueue class is a generic container that provides a queue.
void swap(QQueue< T > &other)
Swaps queue other with this queue.
void append(const T &t)
Inserts value at the end of the list.
#define QT_BEGIN_NAMESPACE
This macro expands to.
T takeFirst()
Removes the first item in the list and returns it.
T & head()
Returns a reference to the queue's head item.
T & first()
Returns a reference to the first item in the list.
void enqueue(const T &t)
Adds value t to the tail of the queue.
T dequeue()
Removes the head item in the queue and returns it.
~QQueue()
Destroys the queue.
QQueue()
Constructs an empty queue.
void swap(QList< T > &other)
Swaps list other with this list.
The QList class is a template class that provides lists.