QVariant::ConstPointer Class
template <typename Indirect> class QVariant::ConstPointerQVariant::ConstPointer ist eine Template-Klasse, die einen const-Zeiger auf ` QVariant` emuliert. Mehr...
Diese Klasse wurde in Qt 6.11 eingeführt.
Öffentliche Funktionen
| ConstPointer(Indirect &&pointed) | |
| ConstPointer(const Indirect &pointed) | |
| QVariant::ConstReference<Indirect> | operator*() const |
Ausführliche Beschreibung
QVariant::ConstPointer<Indirect> umschließt einen Wert vom Typ ` Indirect `, auf den gezeigt wird, und gibt über seinen Operator*() einen ` QVariant::ConstReference ` darauf zurück. Dadurch eignet sie sich als Ersatz für einen tatsächlichen Zeiger. Wir können keinen tatsächlichen Zeiger von generischen Iteratoren zurückgeben, da die Iteratoren keinen tatsächlichen ` QVariant` enthalten.
Dokumentation zu Mitgliedsfunktionen
[explicit noexcept(...)] ConstPointer::ConstPointer(Indirect &&pointed)
Erstellt ein ` QVariant::ConstPointer ` aus dem Wert ` pointed `.
Hinweis: Diese Funktion ist „noexcept“, wenn std::is_nothrow_move_constructible_v<Indirect> gleich true ist.
[explicit noexcept(...)] ConstPointer::ConstPointer(const Indirect &pointed)
Erzeugt ein ` QVariant::ConstPointer ` aus dem Wert ` pointed `.
Hinweis: Diese Funktion ist „noexcept“, wenn „ std::is_nothrow_copy_constructible_v<Indirect> “ gleich „ true “ ist.
[noexcept(...)] QVariant::ConstReference<Indirect> ConstPointer::operator*() const
Löst die Referenz auf den ` QVariant::ConstPointer ` auf einen ` QVariant::ConstReference` auf.
Hinweis: Diese Funktion ist „noexcept“, wenn „ std::is_nothrow_copy_constructible_v<Indirect> “ ein „ true “ ist.
© 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.