QAdoptSharedDataTag Struct

The QAdoptSharedDataTag is a helper tag class. More...

Header: #include <qshareddata.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core
Since: Qt 6.0

Note: All functions in this struct are thread-safe.

Public Functions

Detailed Description

QAdoptSharedDataTag objects are used in QSharedDataPointer and QExplicitlySharedDataPointer to adopt a pointer to shared data.

See QSharedDataPointer and QExplicitlySharedDataPointer for details.

Member Function Documentation

[explicit constexpr noexcept default] QAdoptSharedDataTag::QAdoptSharedDataTag()

Default-constructs an instance of QAdoptSharedDataTag.