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
QtGlobalStatic::Holder< QGS > Union Template Reference

#include <qglobalstatic.h>

+ Collaboration diagram for QtGlobalStatic::Holder< QGS >:

Public Types

using Type = typename QGS::QGS_Type
 
using PlainType = std::remove_cv_t<Type>
 

Public Member Functions

 Holder () noexcept(ConstructionIsNoexcept)
 
 ~Holder ()
 
PlainTypepointer () noexcept
 

Public Attributes

PlainType storage
 

Static Public Attributes

static constexpr bool ConstructionIsNoexcept = noexcept(QGS::innerFunction(nullptr))
 
static Q_CONSTINIT QBasicAtomicInteger< qint8guard = { QtGlobalStatic::Uninitialized }
 

Detailed Description

template<typename QGS>
union QtGlobalStatic::Holder< QGS >

Definition at line 24 of file qglobalstatic.h.

Member Typedef Documentation

◆ PlainType

template<typename QGS >
using QtGlobalStatic::Holder< QGS >::PlainType = std::remove_cv_t<Type>

Definition at line 27 of file qglobalstatic.h.

◆ Type

template<typename QGS >
using QtGlobalStatic::Holder< QGS >::Type = typename QGS::QGS_Type

Definition at line 26 of file qglobalstatic.h.

Constructor & Destructor Documentation

◆ Holder()

template<typename QGS >
QtGlobalStatic::Holder< QGS >::Holder ( )
inlinenoexcept

Definition at line 35 of file qglobalstatic.h.

References QtGlobalStatic::Holder< QGS >::guard, QtGlobalStatic::Initialized, and QtGlobalStatic::Holder< QGS >::pointer().

+ Here is the call graph for this function:

◆ ~Holder()

template<typename QGS >
QtGlobalStatic::Holder< QGS >::~Holder ( )
inline

Definition at line 41 of file qglobalstatic.h.

References QtGlobalStatic::Destroyed, QtGlobalStatic::Holder< QGS >::guard, QtGlobalStatic::Holder< QGS >::pointer(), QT_WARNING_DISABLE_GCC, QT_WARNING_POP, and QT_WARNING_PUSH.

+ Here is the call graph for this function:

Member Function Documentation

◆ pointer()

template<typename QGS >
PlainType * QtGlobalStatic::Holder< QGS >::pointer ( )
inlinenoexcept

Definition at line 57 of file qglobalstatic.h.

References QtGlobalStatic::Holder< QGS >::storage.

Referenced by QtGlobalStatic::Holder< QGS >::Holder(), and QtGlobalStatic::Holder< QGS >::~Holder().

+ Here is the caller graph for this function:

Member Data Documentation

◆ ConstructionIsNoexcept

template<typename QGS >
constexpr bool QtGlobalStatic::Holder< QGS >::ConstructionIsNoexcept = noexcept(QGS::innerFunction(nullptr))
staticconstexpr

Definition at line 29 of file qglobalstatic.h.

◆ guard

template<typename QGS >
Q_CONSTINIT QBasicAtomicInteger<qint8> QtGlobalStatic::Holder< QGS >::guard = { QtGlobalStatic::Uninitialized }
inlinestatic

◆ storage

template<typename QGS >
PlainType QtGlobalStatic::Holder< QGS >::storage

Definition at line 33 of file qglobalstatic.h.

Referenced by QtGlobalStatic::Holder< QGS >::pointer().


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