このページでは

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も参照してください 。

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