![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
QVariant::ConstPointer is a template class that emulates a const pointer to QVariant. More...
#include <qvariant.h>
Public Member Functions | |
| ConstPointer (const Pointed &pointed) noexcept(std::is_nothrow_copy_constructible_v< Pointed >) | |
| Constructs a QVariant::ConstPointer from the value pointed to. | |
| ConstPointer (Pointed &&pointed) noexcept(std::is_nothrow_move_constructible_v< Pointed >) | |
| Constructs a QVariant::ConstPointer from the value pointed to. | |
| ConstReference< Pointed > | operator* () const noexcept(std::is_nothrow_copy_constructible_v< Pointed >) |
| Dereferences the QVariant::ConstPointer to a QVariant::ConstReference. | |
QVariant::ConstPointer is a template class that emulates a const pointer to QVariant.
QVariant::ConstPointer wraps pointed-to value and returns a QVariant::ConstReference 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 320 of file qvariant.h.
|
inlineexplicitnoexcept |
Constructs a QVariant::ConstPointer from the value pointed to.
Definition at line 326 of file qvariant.h.
|
inlineexplicitnoexcept |
Constructs a QVariant::ConstPointer from the value pointed to.
Definition at line 329 of file qvariant.h.
|
inlinenoexcept |
Dereferences the QVariant::ConstPointer to a QVariant::ConstReference.
Definition at line 333 of file qvariant.h.