QVariant::ConstPointer Class
template <typename Indirect> class QVariant::ConstPointerQVariant::ConstPointer è una classe modello che emula un puntatore const a un QVariant. Maggiori informazioni...
Questa classe è stata introdotta in Qt 6.11.
Funzioni pubbliche
| ConstPointer(Indirect &&pointed) | |
| ConstPointer(const Indirect &pointed) | |
| QVariant::ConstReference<Indirect> | operator*() const |
Descrizione dettagliata
QVariant::ConstPointer<Indirect> incapsula un valore puntato di tipo Indirect e restituisce un QVariant::ConstReference ad esso tramite il suo operatore *(). Ciò la rende adatta come sostituto di un puntatore effettivo. Non è possibile restituire un puntatore effettivo dagli iteratori generici poiché gli iteratori non contengono un QVariant effettivo.
Documentazione delle funzioni membro
[explicit noexcept(...)] ConstPointer::ConstPointer(Indirect &&pointed)
Crea un oggetto di tipo ` QVariant::ConstPointer ` a partire dal valore ` pointed `.
Nota: questa funzione è noexcept quando std::is_nothrow_move_constructible_v<Indirect> è true.
[explicit noexcept(...)] ConstPointer::ConstPointer(const Indirect &pointed)
Crea un oggetto ` QVariant::ConstPointer ` a partire dal valore ` pointed `.
Nota: questa funzione è noexcept quando std::is_nothrow_copy_constructible_v<Indirect> è true.
[noexcept(...)] QVariant::ConstReference<Indirect> ConstPointer::operator*() const
Risolve il riferimento a ` QVariant::ConstPointer ` in ` QVariant::ConstReference`.
Nota: questa funzione è `noexcept` quando ` 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.