QVariant::Pointer Class
template <typename Indirect> class QVariant::PointerQVariant::Pointer QVariant への非constポインタをエミュレートするテンプレートクラスです。詳細...
このクラスは Qt 6.11 で導入されました。
パブリック関数
| Pointer(Indirect &&pointed) | |
| Pointer(const Indirect &pointed) | |
| operator QVariant::ConstPointer<Indirect>() const | |
| QVariant::Reference<Indirect> | operator*() const |
詳細な説明
QVariant::Pointer<Indirect> は、Indirect 型のポインタ先にある値をラップし、その *() 演算子からQVariant::Reference を返します。これにより、実際のポインタの代わりとして適しています。ジェネリックイテレータは実際のQVariant を保持していないため、ジェネリックイテレータから実際のポインタを返すことはできません。
メンバ関数のドキュメント
[explicit noexcept(...)] Pointer::Pointer(Indirect &&pointed)
値 `pointed ` から `QVariant::Pointer ` を生成します。
注: std::is_nothrow_move_constructible_v<Indirect> がtrue の場合、この関数は noexcept となります。
[explicit noexcept(...)] Pointer::Pointer(const Indirect &pointed)
値 `pointed ` から `QVariant::Pointer ` を生成します。
注: std::is_nothrow_copy_constructible_v<Indirect> がtrue の場合、この関数は noexcept です。
[noexcept(...)] Pointer::operator QVariant::ConstPointer<Indirect>() const
この `QVariant::Pointer ` を `QVariant::ConstPointer` に変換します。
注: std::is_nothrow_copy_constructible_v<Indirect> がtrue の場合、この関数は noexcept となります。
[noexcept(...)] QVariant::Reference<Indirect> Pointer::operator*() const
QVariant::Pointer をQVariant::Reference として展開します。
注: std::is_nothrow_copy_constructible_v<Indirect> がtrue の場合、この関数は noexcept です。
© 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.