#include "GenericQueue.h"

const size_t numberOfQueues = 5;
GenericQueue<String> numbers(numberOfQueues);

void setup() {
  Serial.begin(115200);
  numbers.enqueue("one");
  numbers.enqueue("two");
  numbers.enqueue("three");
  numbers.enqueue("four");
  numbers.enqueue("five");
  numbers.forEach(ForEach);
}

void loop () {

}

void ForEach(size_t index, String str) {
  Serial.print("Index:");
  Serial.print(index);
  Serial.print(" String:");
  Serial.println(str);
}