Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
src_corelib_tools_qqueue.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4#include <QQueue>
5#include <iostream>
6
7using namespace std;
8
9void example()
10{
11 //! [0]
12 QQueue<int> queue;
13 queue.enqueue(1);
14 queue.enqueue(2);
15 queue.enqueue(3);
16 while (!queue.isEmpty())
17 cout << queue.dequeue() << endl;
18 //! [0]
19}
void example()
[5]