QVariant::ConstPointer Class
template <typename Indirect> class QVariant::ConstPointerQVariant::ConstPointer QVariant 에 대한 const 포인터를 에뮬레이트하는 템플릿 클래스입니다. 더 보기...
이 클래스는 Qt 6.11에서 도입되었습니다.
공개 함수
| ConstPointer(Indirect &&pointed) | |
| ConstPointer(const Indirect &pointed) | |
| QVariant::ConstReference<Indirect> | operator*() const |
상세 설명
QVariant::ConstPointer<Indirect>는 Indirect 유형의 포인터가 가리키는 값을 감싸고, 연산자 *()를 통해 해당 값에 대한 QVariant::ConstReference 를 반환합니다. 따라서 실제 포인터를 대체하는 데 적합합니다. 제네릭 이터레이터는 실제 QVariant 를 보유하지 않으므로, 제네릭 이터레이터에서 실제 포인터를 반환할 수는 없습니다.
멤버 함수 문서
[explicit noexcept(...)] ConstPointer::ConstPointer(Indirect &&pointed)
pointed 에서 QVariant::ConstPointer 를 생성합니다.
참고: std::is_nothrow_move_constructible_v<Indirect> 가 true 일 때,이 함수는 noexcept입니다.
[explicit noexcept(...)] ConstPointer::ConstPointer(const Indirect &pointed)
pointed 에서 QVariant::ConstPointer 를 생성합니다.
참고: std::is_nothrow_copy_constructible_v<Indirect> 가 true 일 때,이 함수는 noexcept입니다.
[noexcept(...)] QVariant::ConstReference<Indirect> ConstPointer::operator*() const
QVariant::ConstPointer 를 QVariant::ConstReference 로 역참조합니다.
참고: std::is_nothrow_copy_constructible_v<Indirect> 가 true 일 때,이 함수는 noexcept입니다.
© 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.