이 페이지에서

QVariant::ConstPointer Class

template <typename Indirect> class QVariant::ConstPointer

QVariant::ConstPointerQVariant 에 대한 const 포인터를 에뮬레이트하는 템플릿 클래스입니다. More...

이 클래스는 Qt 6.11에 도입되었습니다.

공용 함수

ConstPointer(Indirect &&pointed)
ConstPointer(const Indirect &pointed)
QVariant::ConstReference<Indirect> operator*() const

자세한 설명

QVariant::ConstPointer 포인터를 가리키는 값을 래핑하고 그 연산자*()로부터 QVariant::ConstReference 를 반환합니다. 따라서 실제 포인터를 대체하는 데 적합합니다. 일반 이터레이터는 실제 QVariant 를 보유하지 않으므로 일반 이터레이터에서 실제 포인터를 반환할 수 없습니다.

멤버 함수 문서

[explicit noexcept(...)] ConstPointer::ConstPointer(Indirect &&pointed)

pointed 값에서 QVariant::ConstPointer 을 만듭니다.

참고: 이 함수는 std::is_nothrow_move_constructible_v<Indirect>true 인 경우를 제외하고는 사용되지 않습니다.

[explicit noexcept(...)] ConstPointer::ConstPointer(const Indirect &pointed)

pointed 값에서 QVariant::ConstPointer 을 만듭니다.

참고: 이 함수는 std::is_nothrow_copy_constructible_v<Indirect>true 인 경우를 제외하고는 사용되지 않습니다.

[noexcept(...)] QVariant::ConstReference<Indirect> ConstPointer::operator*() const

QVariant::ConstPointerQVariant::ConstReference 으로 참조합니다.

참고: 이 함수는 std::is_nothrow_copy_constructible_v<Indirect>true 인 경우를 제외하고는 사용되지 않습니다.

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