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
7
using
namespace
std
;
8
9
void
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
}
example
void example()
[5]
Definition
doc_src_groups.cpp:7
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
qtbase
src
corelib
doc
snippets
code
src_corelib_tools_qqueue.cpp
Generated on
for Qt by
1.14.0