QVariant::ConstPointer Class
template <typename Pointed> class QVariant::ConstPointerQVariant::ConstPointer ist eine Vorlagenklasse, die einen Konstantenzeiger auf QVariant emuliert. Mehr...
Diese Klasse wurde in Qt 6.11 eingeführt.
Öffentliche Funktionen
| ConstPointer(Pointed &&pointed) | |
| ConstPointer(const Pointed &pointed) | |
| QVariant::ConstReference<Pointed> | operator*() const |
Detaillierte Beschreibung
QVariant::ConstPointer umhüllt den Wert, auf den der Zeiger zeigt, und gibt eine QVariant::ConstReference von seinem operator*() zurück. Damit ist sie als Ersatz für einen tatsächlichen Zeiger geeignet. Von generischen Iteratoren kann kein tatsächlicher Zeiger zurückgegeben werden, da die Iteratoren keinen tatsächlichen QVariant enthalten.
Dokumentation der Mitgliedsfunktionen
[explicit noexcept(...)] ConstPointer::ConstPointer(Pointed &&pointed)
Konstruiert ein QVariant::ConstPointer aus dem Wert pointed to.
Hinweis: Diese Funktion ist noexcept, wenn std::is_nothrow_move_constructible_v<Pointed> true ist.
[explicit noexcept(...)] ConstPointer::ConstPointer(const Pointed &pointed)
Konstruiert ein QVariant::ConstPointer aus dem Wert pointed to.
Hinweis: Diese Funktion ist noexcept, wenn std::is_nothrow_copy_constructible_v<Pointed> true ist.
[noexcept(...)] QVariant::ConstReference<Pointed> ConstPointer::operator*() const
Dereferenziert die QVariant::ConstPointer auf eine QVariant::ConstReference.
Hinweis: Diese Funktion ist noexcept, wenn std::is_nothrow_copy_constructible_v<Pointed> true ist.
© 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.