![]() |
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 Indirect &pointed) noexcept(std::is_nothrow_copy_constructible_v< Indirect >) | |
| Constructs a QVariant::ConstPointer from the value pointed to. | |
| ConstPointer (Indirect &&pointed) noexcept(std::is_nothrow_move_constructible_v< Indirect >) | |
| Constructs a QVariant::ConstPointer from the value pointed to. | |
| ConstReference< Indirect > | operator* () const noexcept(std::is_nothrow_copy_constructible_v< Indirect >) |
| Dereferences the QVariant::ConstPointer to a QVariant::ConstReference. | |
QVariant::ConstPointer is a template class that emulates a const pointer to QVariant.
QVariant::ConstPointer<Indirect> wraps a pointed-to value of type Indirect 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 348 of file qvariant.h.
|
inlineexplicitnoexcept |
Constructs a QVariant::ConstPointer from the value pointed to.
Definition at line 354 of file qvariant.h.
|
inlineexplicitnoexcept |
Constructs a QVariant::ConstPointer from the value pointed to.
Definition at line 357 of file qvariant.h.
|
inlinenoexcept |
Dereferences the QVariant::ConstPointer to a QVariant::ConstReference.
Definition at line 361 of file qvariant.h.