Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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{QtPrivate::qConstexprCountTrailingZeroBits(alignment)}
 
static constexpr size_t tagSize = QtPrivate::qConstexprNextPowerOfTwo(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 >
constexpr size_t QtPrivate::TagInfo< T >::alignment = alignof(T)
staticconstexpr

Definition at line 20 of file qtaggedpointer.h.

◆ tagBits

template<typename T >
constexpr quint8 QtPrivate::TagInfo< T >::tagBits = quint8{QtPrivate::qConstexprCountTrailingZeroBits(alignment)}
staticconstexpr

Definition at line 24 of file qtaggedpointer.h.

◆ tagSize

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

Definition at line 28 of file qtaggedpointer.h.


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