Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
doc_src_qalgorithms.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
5double pi = 3.14;
6double e = 2.71;
7
9// pi == 2.71, e == 3.14
11
12
15list.append(new Employee("Blackpool", "Stephen"));
16list.append(new Employee("Twist", "Oliver"));
17
18qDeleteAll(list.begin(), list.end());
19list.clear();
Definition qlist.h:74
double pi
[0]
qSwap(pi, e)
qDeleteAll(list.begin(), list.end())
double e
QList< Employee * > list
[0]