QVariant::Pointer Class
template <typename Pointed> class QVariant::PointerQVariant::Pointer ist eine Vorlagenklasse, die einen nicht-konstanten Zeiger auf QVariant emuliert. Mehr...
Diese Klasse wurde in Qt 6.11 eingeführt.
Öffentliche Funktionen
| Pointer(Pointed &&pointed) | |
| Pointer(const Pointed &pointed) | |
| QVariant::Reference<Pointed> | operator*() const |
Detaillierte Beschreibung
QVariant::Pointer umhüllt den Wert, auf den der Zeiger zeigt, und gibt eine QVariant::Reference 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(...)] Pointer::Pointer(Pointed &&pointed)
Konstruiert ein QVariant::Pointer aus dem Wert pointed to.
Hinweis: Diese Funktion ist noexcept, wenn std::is_nothrow_move_constructible_v<Pointed> true ist.
[explicit noexcept(...)] Pointer::Pointer(const Pointed &pointed)
Konstruiert ein QVariant::Pointer aus dem Wert pointed to.
Hinweis: Diese Funktion ist noexcept, wenn std::is_nothrow_copy_constructible_v<Pointed> true ist.
[noexcept(...)] QVariant::Reference<Pointed> Pointer::operator*() const
Dereferenziert die QVariant::Pointer auf eine QVariant::Reference.
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.