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

자세한 설명

이 클래스는 메타 형 시스템을 사용하여 프로토 버프 메시지의 소멸자를 호출합니다. 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.