30 std::unique_ptr<QVariant::PrivateShared, Deleter>
ptr;
39 construct(
ptr->data());
63 size = computeAllocationSize(
size, align);
66 ps->
offset = computeOffset(ps, align);
77 : is_shared(
false), is_null(
false), packedType(
quintptr(iface) >> 2)
82template <
typename T>
inline
84 : is_shared(!CanUseInternalSpace<T>), is_null(
std::is_same_v<T,
std::nullptr_t>)
87 static constexpr bool isNothrowQVariantConstructible =
noexcept(
QVariant(
t));
88 static constexpr bool isNothrowCopyConstructible = std::is_nothrow_copy_constructible_v<T>;
89 static constexpr bool isNothrowCopyAssignable = std::is_nothrow_copy_assignable_v<T>;
95 if constexpr (CanUseInternalSpace<T>) {
96 static_assert(isNothrowQVariantConstructible == isNothrowCopyConstructible);
97 static_assert(isNothrowQVariantConstructible == isNothrowCopyAssignable);
100 static_assert(!isNothrowQVariantConstructible);
void * data()
Returns a pointer to the contained object as a generic void* that can be written to.
QVariant() noexcept
Constructs an invalid variant.
Combined button and popup list for selecting options.
static ControlElement< T > * ptr(QWidget *widget)
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
QT_BEGIN_NAMESPACE auto customConstructSharedImpl(size_t size, size_t align)
static QVariant::PrivateShared * customConstructShared(size_t size, size_t align, F &&construct)
static void free(PrivateShared *p)
static PrivateShared * create(size_t size, size_t align)
static size_t computeAllocationSize(size_t size, size_t align)
static int computeOffset(PrivateShared *ps, size_t align)
constexpr Private() noexcept