![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtCore More...
#include <qtypeinfo.h>
Static Public Attributes | |
static constexpr bool | isComplex = ((QTypeInfo<Ts>::isComplex) || ...) |
static constexpr bool | isRelocatable = ((QTypeInfo<Ts>::isRelocatable) && ...) |
static constexpr bool | isPointer = false |
static constexpr bool | isIntegral = false |
static constexpr bool | isValueInitializationBitwiseZero = false |
\inmodule QtCore
QTypeInfoMerger merges the QTypeInfo flags of T1, T2... and presents them as a QTypeInfo<T> would do.
Let's assume that we have a simple set of structs:
To create a proper QTypeInfo specialization for A struct, we have to check all sub-components; B, C and D, then take the lowest common denominator and call Q_DECLARE_TYPEINFO with the resulting flags. An easier and less fragile approach is to use QTypeInfoMerger, which does that automatically. So struct A would have the following QTypeInfo definition:
Definition at line 96 of file qtypeinfo.h.
|
staticconstexpr |
Definition at line 100 of file qtypeinfo.h.
|
staticconstexpr |
Definition at line 103 of file qtypeinfo.h.
|
staticconstexpr |
Definition at line 102 of file qtypeinfo.h.
|
staticconstexpr |
Definition at line 101 of file qtypeinfo.h.
|
staticconstexpr |
Definition at line 104 of file qtypeinfo.h.