![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
QVariant::Pointer is a template class that emulates a non-const pointer to QVariant. More...
#include <qvariant.h>
Public Member Functions | |
| Pointer (const Pointed &pointed) noexcept(std::is_nothrow_copy_constructible_v< Pointed >) | |
| Constructs a QVariant::Pointer from the value pointed to. | |
| Pointer (Pointed &&pointed) noexcept(std::is_nothrow_move_constructible_v< Pointed >) | |
| Constructs a QVariant::Pointer from the value pointed to. | |
| Reference< Pointed > | operator* () const noexcept(std::is_nothrow_copy_constructible_v< Pointed >) |
| Dereferences the QVariant::Pointer to a QVariant::Reference. | |
QVariant::Pointer is a template class that emulates a non-const pointer to QVariant.
QVariant::Pointer wraps pointed-to value and returns a QVariant::Reference to it from its operator*(). This makes it suitable as replacement for an actual pointer. We cannot return an actual pointer from generic iterators as the iterators don't hold an actual QVariant.
Definition at line 341 of file qvariant.h.
|
inlineexplicitnoexcept |
Constructs a QVariant::Pointer from the value pointed to.
Definition at line 347 of file qvariant.h.
|
inlineexplicitnoexcept |
Constructs a QVariant::Pointer from the value pointed to.
Definition at line 350 of file qvariant.h.
|
inlinenoexcept |
Dereferences the QVariant::Pointer to a QVariant::Reference.
Definition at line 354 of file qvariant.h.