1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4/*!
5 \class QtPrivate::RefCount
6 \inmodule QtCore
7 \internal
8
9 QRefCount implements atomic ref counting for Qt's shared classes. It behaves very similar
10 to QAtomicInt, but ignores negative ref counts.
11
12 This can be used to allow to implement e.g. const read-only QStringData objects. QString::shared_null and
13 the qs(...) macro make use of this feature.
14*/
15

source code of qtbase/src/corelib/tools/qrefcount.cpp