I have a question on QueueList.h Library found on http://playground.arduino.cc/Code/QueueList. The library consists of the followings methods:
void push (const T item)
//Push an item with data type “T” to the queue.
T pop ()
//Pop an item with data type “T” from the queue.
T peek ()
//Get an item with data type “T” from the queue.
bool isEmpty ()
//Check if the queue is empty.
int count ()
//Get the number of items in the queue.
void setPrinter (Print & printer)
//Sets the printer of the queue.
Can anyone teach me how to write and include a top() function for the queue?
Thank you very much