RefCount Class

class QtPrivate::RefCount
Header: #include <RefCount>

Detailed Description

\inmoduleQtCore \internal

QRefCount implements atomic ref counting for Qt's shared classes. It behaves very similar to QAtomicInt, but ignores negative ref counts.

This can be used to allow to implement e.g. const read-only QStringData objects. QString::shared_null and the qs(...) macro make use of this feature.