Calls the destructor of the child class of a QProtobufMessage . 更多...
头: | #include <QProtobufMessageDeleter> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS Protobuf)
target_link_libraries(mytarget PRIVATE Qt6::Protobuf) |
Since: | Qt 6.5 |
状态: | 技术预览 |
void | operator() (QProtobufMessage * ptr ) |
This class calls the destructor of a protobuf message using the meta-type system. This class is intended to be used with smart pointers, such as std::unique_ptr.
另请参阅 QProtobufMessagePointer .
[noexcept]
void
QProtobufMessageDeleter::
operator()
(
QProtobufMessage
*
ptr
)
Destroys the message pointed to by ptr . This is intended for use with smart pointers.
另请参阅 QProtobufMessagePointer .