QProtobufMessageDeleter Struct

Calls the destructor of the child class of a QProtobufMessage. More...

Header: #include <QProtobufMessageDeleter>
CMake: find_package(Qt6 REQUIRED COMPONENTS Protobuf)
target_link_libraries(mytarget PRIVATE Qt6::Protobuf)
Since: Qt 6.5
Status: Technical Preview

Public Functions

void operator()(QProtobufMessage *ptr)

Detailed Description

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.

See also QProtobufMessagePointer.

Member Function Documentation

[noexcept] void QProtobufMessageDeleter::operator()(QProtobufMessage *ptr)

Destroys the message pointed to by ptr. This is intended for use with smart pointers.

See also QProtobufMessagePointer.

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.