QProtobufMessageDeleter Struct

调用QProtobufMessage 子类的析构函数 ... 更多...

头文件: #include <QProtobufMessageDeleter>
CMake: find_package(Qt6 REQUIRED COMPONENTS Protobuf)
target_link_libraries(mytarget PRIVATE Qt6::Protobuf)
Qt 6.5

公共函数

void operator()(QProtobufMessage *ptr) const

详细说明

该类使用元类型系统调用 protobuf 消息的析构函数。该类用于智能指针,如 std::unique_ptr。

另请参见 QProtobufMessagePointer

成员函数文档

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

销毁ptr 所指向的信息。该功能用于智能指针。

另请参阅 QProtobufMessagePointer

© 2025 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.