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.