diff options
Diffstat (limited to 'src/qml/qml/ftw/qflagpointer_p.h')
-rw-r--r-- | src/qml/qml/ftw/qflagpointer_p.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/qml/qml/ftw/qflagpointer_p.h b/src/qml/qml/ftw/qflagpointer_p.h index c8824f3866..3d1de3c136 100644 --- a/src/qml/qml/ftw/qflagpointer_p.h +++ b/src/qml/qml/ftw/qflagpointer_p.h @@ -66,6 +66,16 @@ template <> struct QFlagPointerAlignment<void> }; } +/*! + \internal + \class template<typename T1, typename T2> QBiPointer<T1, T2> + + \short QBiPointer can be thought of as a space-optimized std::variant<T1*, T2*> + with a nicer API to check the active pointer. Its other main feature is that + it only requires sizeof(void *) space. + + \note It can also store one additional flag for a user defined purpose. + */ template<typename T, typename T2> class QBiPointer { public: |