Exemplo n.º 1
0
int main(void)
{
    MyQueue<int> list;
    
    list.enqueue(1);
    list.enqueue(2);

    cout << "Size = " << list.size() << endl;
    cout << "Dequeue => " << list.dequeue() << endl;
    cout << "Peek => " << list.peek() << endl;
    
    list.clear();
    
    if (list.isEmpty())
        list.enqueue(3);
    
    return 0;
}