![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
The QVariant::ConstReference acts as a const reference to a QVariant. More...
#include <qvariant.h>
Public Member Functions | |
| ConstReference (const Referred &referred) noexcept(std::is_nothrow_copy_constructible_v< Referred >) | |
| Creates a QVariant::ConstReference from a referred. | |
| ConstReference (Referred &&referred) noexcept(std::is_nothrow_move_constructible_v< Referred >) | |
| Creates a QVariant::ConstReference from a referred. | |
| ConstReference (const ConstReference &)=default | |
| ConstReference (ConstReference &&)=default | |
| ~ConstReference ()=default | |
| ConstReference & | operator= (const ConstReference &value)=delete |
| ConstReference & | operator= (ConstReference &&value)=delete |
| operator QVariant () const noexcept(Referred::canNoexceptConvertToQVariant) | |
| Dereferences the reference to a QVariant. | |
The QVariant::ConstReference acts as a const reference to a QVariant.
As the generic iterators don't actually instantiate a QVariant on each step, they cannot return a reference to one from operator*(). QVariant::ConstReference provides the same functionality as an actual reference to a QVariant would, but is backed a referred-to value given as template parameter. The template is implemented for QMetaSequence::ConstIterator, QMetaSequence::Iterator, QMetaAssociation::ConstIterator, and QMetaAssociation::Iterator.
Definition at line 245 of file qvariant.h.
|
inlineexplicitnoexcept |
Creates a QVariant::ConstReference from a referred.
Definition at line 253 of file qvariant.h.
|
inlineexplicitnoexcept |
Creates a QVariant::ConstReference from a referred.
Definition at line 256 of file qvariant.h.
|
default |
|
default |
|
default |
|
noexcept |
Dereferences the reference to a QVariant.
This method needs to be specialized for each Referred type. It is pre-defined for QMetaSequence::ConstIterator, QMetaSequence::Iterator, QMetaAssociation::ConstIterator, and QMetaAssociation::Iterator.
|
delete |
|
delete |