Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QtPrivate::TagInfo< T > Struct Template Reference

#include <qtaggedpointer.h>

Collaboration diagram for QtPrivate::TagInfo< T >:

Public Types

using TagType = typename QIntegerForSize<tagSize>::Unsigned

Static Public Attributes

static constexpr size_t alignment = alignof(T)
static constexpr quint8 tagBits = quint8(qCountTrailingZeroBits(alignment))
static constexpr size_t tagSize = qNextPowerOfTwo(nextByteSize(tagBits))

Detailed Description

template<typename T>
struct QtPrivate::TagInfo< T >

Definition at line 18 of file qtaggedpointer.h.

Member Typedef Documentation

◆ TagType

template<typename T>
using QtPrivate::TagInfo< T >::TagType = typename QIntegerForSize<tagSize>::Unsigned

Definition at line 32 of file qtaggedpointer.h.

Member Data Documentation

◆ alignment

template<typename T>
size_t QtPrivate::TagInfo< T >::alignment = alignof(T)
staticconstexpr

Definition at line 20 of file qtaggedpointer.h.

◆ tagBits

template<typename T>
quint8 QtPrivate::TagInfo< T >::tagBits = quint8(qCountTrailingZeroBits(alignment))
staticconstexpr

Definition at line 24 of file qtaggedpointer.h.

◆ tagSize

template<typename T>
size_t QtPrivate::TagInfo< T >::tagSize = qNextPowerOfTwo(nextByteSize(tagBits))
staticconstexpr

Definition at line 28 of file qtaggedpointer.h.


The documentation for this struct was generated from the following file: