StuBS
queue.h File Reference

Templated Queue for arbitrary objects. More...

#include "machine/core.h"
#include "debug/assert.h"
#include "object/outputstream.h"
Include dependency graph for queue.h:
This graph shows which files directly or indirectly include this file:

Classes

class  Queue< T >
 Templated Queue for arbitrary objects. More...
 
class  Queue< T >::Iterator
 Minimal forward iterator You can use this iterator to iterate the queue like a normal STL container. It only supports forward iteration, since the queue is single linked. More...
 

Functions

template<class T >
OutputStreamoperator<< (OutputStream &os, Queue< T > &queue)
 Overload stream operator for list printing.
 

Detailed Description

Templated Queue for arbitrary objects.

Function Documentation

◆ operator<<()

template<class T >
OutputStream & operator<< ( OutputStream os,
Queue< T > &  queue 
)

Overload stream operator for list printing.

With this a list can be printed. The elements itself are not printed, just the pointer.