summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_corelib_tools_qqueue.cpp
blob: c59ec1060ae5bd7331faa58415479c8f32af19e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

//! [0]
QQueue<int> queue;
queue.enqueue(1);
queue.enqueue(2);
queue.enqueue(3);
while (!queue.isEmpty())
    cout << queue.dequeue() << endl;
//! [0]