QSharedData Class

The QSharedData class is a base class for shared data objects. \reentrant. More...

Header: #include <QSharedData>
Inherited By:

QDBusIntrospection::Interface and QDBusIntrospection::Object

Public Functions

QSharedData()
QSharedData(const QSharedData &)

Detailed Description

\inmoduleQtCore

QSharedData is designed to be used with QSharedDataPointer or QExplicitlySharedDataPointer to implement custom implicitly shared or explicitly shared classes. QSharedData provides thread-safe reference counting.

See QSharedDataPointer and QExplicitlySharedDataPointer for details.

Member Function Documentation

[noexcept] QSharedData::QSharedData()

Constructs a QSharedData object with a reference count of 0.

[noexcept] QSharedData::QSharedData(const QSharedData &)

Constructs a QSharedData object with reference count 0. The parameter is ignored.